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