[WIP] Add some classes
This commit is contained in:
@@ -44,4 +44,10 @@ class Article extends Model
|
||||
{
|
||||
return $this->hasMany('App\Models\Shop\InvoiceItem');
|
||||
}
|
||||
|
||||
public function Product()
|
||||
{
|
||||
return $this->belongsTo($this->model, 'model_id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user