Modules/Staff/Database/Seeds/StaffDatabaseSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \DB::statement("SET foreign_key_checks=0");
        Model::unguard();
        $this->call(StaffsDataSeeder::class);
        \DB::statement("SET foreign_key_checks=1");
    }
public function run ( ) { \ DB :: statement ( " SET foreign_key_checks=0 " ) ; Model :: unguard ( ) ; $ this -> call ( StaffsDataSeeder :: class ) ; \ DB :: statement ( " SET foreign_key_checks=1 " ) ; }
Run the database seeds.
Run the database seeds .