You've already forked Atomcms-edit
18 lines
417 B
PHP
Executable File
18 lines
417 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class WebsiteShopArticleFeature extends Model
|
|
{
|
|
#[\Override]
|
|
protected $guarded = ['id', 'created_at', 'updated_at', 'article_id', 'feature'];
|
|
|
|
public function article(): BelongsTo
|
|
{
|
|
return $this->belongsTo(WebsiteShopArticle::class, 'article_id', 'id');
|
|
}
|
|
}
|