You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to access the translations in the condition of the updateOrCreate method just like when using it when doing insert. Something like that:
It would be nice to be able to access the translations in the condition of the updateOrCreate method just like when using it when doing insert. Something like that:
Model::updateOrCreate([ 'model_id' => $model->id, 'es' => [ 'section' => 'Ejemplo', 'title' => 'Ejemplo documento ', 'doc' => 'documento.pdf', ], ], [ 'model_id' => $model->id, 'es' => [ 'section' => 'Ejemplo', 'title' => 'Ejemplo documento', 'doc' => 'documento_es.pdf', ], 'en' => [ 'section' => 'Example', 'title' => 'Example document', 'doc' => 'document_en.pdf', ], ]);
I find myself in this problem and I thought it was a good idea to propose it.
The text was updated successfully, but these errors were encountered: