composer.jsonby executing the command.
localesyour app should use.
Post. We will need an extra table
Postshould use the trait
Astrotomic\Translatable\Translatable. The default convention for the translation model is
PostTranslation. The array
$translatedAttributescontains the names of the fields being translated in the
ChildPostthat inherits from
Postclass, but has the same database table as its parent.
post_translationstable using foreign key
child_post_idaccording to Laravel. So, in this case, you will have to change the property