Pembaruan Laravel jika ada atau buat

$flight = App\Flight::updateOrCreate(
    ['departure' => 'Oakland', 'destination' => 'San Diego'],
    ['price' => 99]
);
Yousef Qaoud