27 lines
492 B
PHP
27 lines
492 B
PHP
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Offer extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
protected $table = 'shop_offers';
|
|
|
|
public function article()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\Article');
|
|
}
|
|
|
|
public function variation()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\Variation');
|
|
}
|
|
|
|
public function tariff()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\Tariff');
|
|
}
|
|
}
|