[WIP] Add some classes

This commit is contained in:
Ludovic CANDELLIER
2020-04-25 01:06:04 +02:00
parent e0fecd1a6e
commit 516ec2232e
36 changed files with 814 additions and 131 deletions

View File

@@ -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');
}
}