Add new version in repository
This commit is contained in:
30
app/Models/Shop/Tariff.php
Normal file
30
app/Models/Shop/Tariff.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use Staudenmeir\EloquentHasManyDeep\HasRelationships;
|
||||
|
||||
class Tariff extends Model
|
||||
{
|
||||
use 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user