Answers for "Import::updateOrCreate("

PHP
1

updateorcreate

$user = User::updateOrCreate(
    ['email' =>  request('email')],
    ['name' => request('name')]
);

// Do other things with the User
Posted by: Guest on March-08-2021

Browse Popular Code Answers by Language