Skip to content

Commit

Permalink
fix updateOrCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
olivM authored Apr 24, 2020
1 parent 73f4afd commit fe62e1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 fe62e1e

Please sign in to comment.