D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Filename :
OrdersArchive.php
back
Copy
<?php namespace App; use Illuminate\Database\Eloquent\Model; class OrdersArchive extends Model { public function user() { return $this->hasOne('App\User', 'id', 'user_id'); } public function sizes() { return $this->hasOne('App\Size', 'id', 'sizes_id'); } public function saloons() { return $this->hasOne('App\Saloon', 'id', 'saloon_id'); } public function catalogs() { return $this->hasOne('App\Catalogs', 'id', 'catalogs_id'); } public function artists() { return $this->hasOne('App\Artist', 'id', 'artist_id'); } public function pictures(){ return $this->hasOne('App\Picture','id','picture_data'); } }