Files
opensem/app/Models/Shop/PriceGenericCategory.php
2021-07-25 23:19:27 +02:00

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