Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

update or create laravel

$user = User::updateOrCreate(['name' => request()->name], [ 
    'foo' => request()->foo
]);
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #update #create #laravel
ADD COMMENT
Topic
Name
8+1 =