Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace Paymenter\Extensions\Others\CustomPages\Models;
use Illuminate\Database\Eloquent\Model;
class Page extends Model
{
protected $table = 'ext_custompages_pages';
protected $fillable = [
'is_active',
'expires_at',
'title',
'slug',
'content',
'visibility',
'visible_in_menu',
// metadata
'meta_title',
'meta_description',
'meta_image',
'meta_color',
'meta_favicon',
];
protected $casts = [
'visible_in_menu' => 'boolean',
'is_active' => 'boolean',
];
public function getRouteKeyName()
{
return 'slug';
}
public function views()
{
return $this->hasMany(PageView::class);
}
}