22 lines
454 B
PHP
22 lines
454 B
PHP
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PriceGenericCategory extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
protected $table = 'shop_price_generic_categories';
|
|
|
|
public function article_family()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\ArticleNature');
|
|
}
|
|
|
|
public function price_generics()
|
|
{
|
|
return $this->hasMany('App\Models\Shop\PriceGeneric', 'category_id');
|
|
}
|
|
}
|