/** * Run the database seeds. * * @return void */ public function run() { DB::statement('SET FOREIGN_KEY_CHECKS=0;'); Video::truncate(); $this->call(VideosTableSeeder::class); User::truncate(); $this->call(UsersTableSeeder::class); Analyse::truncate(); $this->call(AnalyseTableSeeder::class); Group::truncate(); $this->call(GroupsTableSeeder::class); Sport::truncate(); $this->call(SportsTableSeeder::class); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); }