2021-12-15 10:09:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use App\Enums\Page;
|
2022-01-23 12:38:29 +01:00
|
|
|
use App\Traits\CastsEnumsHasTranslations;
|
2021-12-15 10:09:39 +01:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Text extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
2022-01-23 12:38:29 +01:00
|
|
|
use CastsEnumsHasTranslations;
|
2021-12-15 10:09:39 +01:00
|
|
|
|
|
|
|
|
public $enumCasts = [
|
|
|
|
|
'page' => Page::class
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'title',
|
|
|
|
|
'text',
|
|
|
|
|
];
|
2022-01-23 12:38:29 +01:00
|
|
|
|
|
|
|
|
public $translatable = [
|
|
|
|
|
'title',
|
|
|
|
|
'text',
|
|
|
|
|
];
|
2021-12-15 10:09:39 +01:00
|
|
|
}
|