You've already forked Atomcms-edit
26 lines
712 B
PHP
Executable File
26 lines
712 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\Game\Furniture;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
/**
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogPage find($id, $columns = ['*'])
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogPage pluck($column, $key = null)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogPage whereKey($id)
|
|
*/
|
|
class CatalogPage extends Model
|
|
{
|
|
#[\Override]
|
|
protected $guarded = ['id', 'parent_id'];
|
|
|
|
#[\Override]
|
|
public $timestamps = false;
|
|
|
|
public function catalogItems(): HasMany
|
|
{
|
|
return $this->hasMany(CatalogItem::class, 'page_id');
|
|
}
|
|
}
|