Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id
- id_supplier
- id_store
- id
- id
- public function supplier() {
- return $this->belongsTo('AppSupplier', 'id_supplier');
- }
- public function repairs() {
- return $this->hasMany('AppRepair', 'id_supplier');
- }
- public function repairs() {
- return $this->hasMany('AppRepair', 'id_store');
- }
- public function suppliers() {
- return $this->hasManyThrough('AppSupplier', 'AppRepair', 'id_supplier', '<NO IDEIA WHAT'S HERE>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement