delete query eloquent laravel code example
Example 1: laravel delete where
DB::table('users')->where('id', $id)->delete();
Example 2: laravel update
$flight = App\Models\Flight::find(1);
$flight->name = 'New Flight Name';
$flight->save();
DB::table('users')->where('id', $id)->delete();
$flight = App\Models\Flight::find(1);
$flight->name = 'New Flight Name';
$flight->save();