Files
opensem/app/Models/Shop/Tariff.php
2021-07-27 22:12:58 +02:00

31 lines
652 B
PHP

<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Staudenmeir\EloquentHasManyDeep\HasRelationships;
use BeyondCode\Comments\Traits\HasComments;
class Tariff extends Model
{
use HasComments, HasRelationships;
protected $guarded = ['id'];
protected $table = 'shop_tariffs';
public function sale_channel()
{
return $this->belongsTo('App\Models\Shop\SaleChannel');
}
public function tariff_unity()
{
return $this->belongsTo('App\Models\Shop\TariffUnity');
}
public function price_lists()
{
return $this->hasMany('App\Models\Shop\PriceList');
}
}