Files
opensem/app/Models/Shop/PriceFamilyValue.php
Ludovic CANDELLIER 083d358fbd Mise à jour
2021-03-21 23:26:53 +01:00

22 lines
389 B
PHP

<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class PriceFamilyValue extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_price_family_values';
public function price_family()
{
return $this->belongsTo('App\Models\Shop\PriceFamily');
}
public function scopeByFamily($query, $id)
{
return $query->where('price_family_id');
}
}