Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

update Or Create laravel

$user = User::updateOrCreate(
    ['email' =>  request('email')],
    ['name' => request('name')]
);
 
// Do other things with the User
Source by laravel-news.com #
 
PREVIOUS NEXT
Tagged: #update #Or #Create #laravel
ADD COMMENT
Topic
Name
1+2 =