User::where('id',$id)->delete();
//or
$user = User::find(1);
$user->delete();
$res=User::where('id',$id)->delete();
DB::table('users')->where('votes', '>', 100)->delete();
use AppModelsFlight;
$flight = Flight::find(1);
$flight->delete();
Flight::destroy(1);
Flight::destroy(1, 2, 3);
Flight::destroy([1, 2, 3]);
Flight::destroy(collect([1, 2, 3]));
$user=User::find(1);
$user->delete(); //returns true/false
User::where('column', $where)->delete();
public function destroy($id){
$res=User::find($id)->delete();
if ($res){
$data=[
'status'=>'1',
'msg'=>'success'
];
}else{
$data=[
'status'=>'0',
'msg'=>'fail'
];
return response()->json($data);
use AppModelsFlight;
$flights = Flight::withTrashed()
->where('account_id', 1)
->get();