laravel updated query code example
Example 1: laravel eloquent remove from db
$res=User::where('id',$id)->delete();
Example 2: laravel 8 orderby
$flights = App\Models\Flight::where('active', 1)
->orderBy('name', 'desc')
->take(10)
->get();