Update with new price management
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user