2021-12-13 16:55:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use App\Enums\Page;
|
2022-01-23 11:56:51 +01:00
|
|
|
use App\Traits\CastsEnumsHasTranslations;
|
2021-12-13 16:55:12 +01:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Title extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
2022-01-23 11:56:51 +01:00
|
|
|
use CastsEnumsHasTranslations;
|
2021-12-13 16:55:12 +01:00
|
|
|
|
|
|
|
|
public $enumCasts = [
|
|
|
|
|
'page' => Page::class
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'title',
|
|
|
|
|
'text',
|
|
|
|
|
];
|
2022-01-23 11:56:51 +01:00
|
|
|
|
|
|
|
|
public $translatable = [
|
|
|
|
|
'title',
|
|
|
|
|
'text',
|
|
|
|
|
];
|
2021-12-13 16:55:12 +01:00
|
|
|
}
|