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