destroy or delete in laravel


App\Flight::destroy(1);

App\Flight::destroy(1, 2, 3);


$deletedRows = App\Flight::where('active', 0)->delete();

Comments

Popular Posts