database/seeds/rolDefaultSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
      DB::table('roles')->insert(['name'=>'Administrador','slug'=>'administrador','special'=>'all-access']);
      DB::table('roles')->insert(['name'=>'Empleado','slug'=>'empleado']);
      DB::table('roles')->insert(['name'=>'Cliente','slug'=>'cliente']);
    }
public function run ( ) { DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Administrador' , 'slug' => 'administrador' , 'special' => 'all-access' ] ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Empleado' , 'slug' => 'empleado' ] ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Cliente' , 'slug' => 'cliente' ] ) ; }
Run the database seeds.
Run the database seeds .