We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is tere any possibility to set attribute values for different languages before save?
For example something like $page = new \App\Page(); $page->title = ['en'=>'title', 'es'=>'title1']; $page->save();
$page = new \App\Page();
$page->title = ['en'=>'title', 'es'=>'title1'];
$page->save();
The text was updated successfully, but these errors were encountered:
@ludmanp Have you found the solution for your problem? It would be great.
Sorry, something went wrong.
It seems, that the best way is to do something like $model->title = json_encode(['en'=>'title', 'es'=>'title1']);
$model->title = json_encode(['en'=>'title', 'es'=>'title1']);
It is a good idea. thank you!
No branches or pull requests
Is tere any possibility to set attribute values for different languages before save?
For example something like
$page = new \App\Page();
$page->title = ['en'=>'title', 'es'=>'title1'];
$page->save();
The text was updated successfully, but these errors were encountered: