created new migration for future projects
This commit is contained in:
@@ -25,4 +25,8 @@ class Service extends Model
|
||||
'name',
|
||||
'state',
|
||||
];
|
||||
|
||||
public function structure() {
|
||||
return $this->hasOne('App\Models\Structure\Structure', 'structure_id', 'structure_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,8 @@ class Structure extends Model
|
||||
'reinforce_weekday',
|
||||
'unanchors_at',
|
||||
];
|
||||
|
||||
public function services() {
|
||||
return $this->hasMany('App\Models\Structure\Service', 'structure_id', 'structure_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user