database/seeds/RolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Role::truncate();
        Role::create(['name'=>'admin']);
        Role::create(['name'=>'clinica']);
        Role::create(['name'=>'doctor']);
        Role::create(['name'=>'paciente']);
        Role::create(['name'=>'enfermera']);
        Role::create(['name'=>'secretaria']);
    }
public function run ( ) { Role :: truncate ( ) ; Role :: create ( [ 'name' => 'admin' ] ) ; Role :: create ( [ 'name' => 'clinica' ] ) ; Role :: create ( [ 'name' => 'doctor' ] ) ; Role :: create ( [ 'name' => 'paciente' ] ) ; Role :: create ( [ 'name' => 'enfermera' ] ) ; Role :: create ( [ 'name' => 'secretaria' ] ) ; }
Run the database seeds.
Run the database seeds .