Skip to content

Commit

Permalink
Merge pull request #4 from olivM/master
Browse files Browse the repository at this point in the history
fix updateOrCreate
  • Loading branch information
eboye committed Apr 25, 2020
2 parents 73f4afd + fe62e1e commit 21bb536
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ public function index( Request $request ) {
*/
public function save( Request $request ) {
if ( $request->has( [ 'group', 'key', 'text', 'locale' ] ) ) {
return LanguageLine::firstOrCreate(
return LanguageLine::updateOrCreate(
[
'group' => $request->get( 'group' ),
'key' => $request->get( 'key' )
Expand Down

0 comments on commit 21bb536

Please sign in to comment.