laravel eloquent model get record with where clause and specific attribute code example
Example: laravel update
$flight = App\Models\Flight::find(1);
$flight->name = 'New Flight Name';
$flight->save();
$flight = App\Models\Flight::find(1);
$flight->name = 'New Flight Name';
$flight->save();