Laravel menemukan atau membuat yang baru

$user = User::firstOrCreate(
    ['email' =>  request('email')],
    ['name' => request('name')]
);
 
// No call to $user->save() needed
DJ Ultimate Disco Party