delete function in laravel 8 code example
Example 1: laravel delete
DB::table('users')->where('votes', '>', 100)->delete();
Example 2: Laravel Delete
Flight::destroy(1);
Flight::destroy(1, 2, 3);
Flight::destroy([1, 2, 3]);
Flight::destroy(collect([1, 2, 3]));