My guess was to use the following syntax:
MyModel::all()->delete();
But that did not work. I\'m sure it\'s super simple, but I\'ve searched
You can use Model::truncate() if you disable foreign_key_checks (I assume you use MySQL).
Model::truncate()
foreign_key_checks
DB::statement("SET foreign_key_checks=0"); Model::truncate(); DB::statement("SET foreign_key_checks=1");