Update with new price management

This commit is contained in:
Ludovic CANDELLIER
2021-03-22 00:47:44 +01:00
parent 083d358fbd
commit 37ffaa938b
64 changed files with 1118 additions and 984 deletions

View File

@@ -6,8 +6,16 @@ use Illuminate\Database\Eloquent\Model;
class Unity extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_unities';
protected $guarded = ['id'];
protected $table = 'shop_unities';
public function article_family()
{
return $this->belongsTo('App\Models\Shop\ArticleFamily');
}
public function scopeByFamily($query, $id)
{
return $query->where('article_family_id');
}
}