use translatable on Title Model
This commit is contained in:
parent
c123f8b529
commit
513db683fb
1 changed files with 7 additions and 2 deletions
|
|
@ -3,14 +3,14 @@
|
|||
namespace App\Models;
|
||||
|
||||
use App\Enums\Page;
|
||||
use App\Traits\CastsEnumsHasTranslations;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Kwaadpepper\Enum\Traits\CastsEnums;
|
||||
|
||||
class Title extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use CastsEnums;
|
||||
use CastsEnumsHasTranslations;
|
||||
|
||||
public $enumCasts = [
|
||||
'page' => Page::class
|
||||
|
|
@ -20,4 +20,9 @@ class Title extends Model
|
|||
'title',
|
||||
'text',
|
||||
];
|
||||
|
||||
public $translatable = [
|
||||
'title',
|
||||
'text',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue