Fixes after reading excel files and discuss with eric

This commit is contained in:
Ludovic CANDELLIER
2021-03-26 15:40:53 +01:00
parent 37ffaa938b
commit 22fa3d3246
22 changed files with 456 additions and 203 deletions

View File

@@ -9,13 +9,13 @@ class Unity extends Model
protected $guarded = ['id'];
protected $table = 'shop_unities';
public function article_family()
public function package()
{
return $this->belongsTo('App\Models\Shop\ArticleFamily');
return $this->belongsTo('App\Models\Shop\Package');
}
public function scopeByFamily($query, $id)
public function scopeByPackage($query, $id)
{
return $query->where('article_family_id');
return $query->where('package_id', $id);
}
}