public function run()
 {
     $faker = Faker::create();
     foreach (range(0, 30) as $index) {
         Analyse::create(['name' => $faker->sentence(2), 'description' => $faker->sentence(20), 'date' => $faker->date('Y-m-d'), 'type' => $faker->sentence(1)]);
     }
 }
 /**
  * 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;');
 }
 public function destroy($id)
 {
     $analyse = Analyse::find($id);
     $analyse->delete();
     return $this->setStatusCode(200)->respond(["message" => "succesfully deleted the analyse"]);
 }