22 lines
418 B
PHP
22 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ArticlePrice extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
protected $table = 'shop_article_prices';
|
|
|
|
public function article_attribute()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
|
|
}
|
|
|
|
public function article()
|
|
{
|
|
return $this->belongsTo('App\Models\Shop\Article');
|
|
}
|
|
|
|
} |