laravel 5 + model + with + where code example
Example 1: laravel eloquent remove from db
$res=User::where('id',$id)->delete();
Example 2: crrate model in laravel
php artisan make:model Flight -mcr
#it will make model with name of Flight
#it will also create conctroller file with FlightController name
#all function will present in this Controller (index, create, store, show, edit, update, destroy)