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()
    {
        Roles::create([
            'rol' => 'administrador'
        ]);
        Roles::create([
            'rol' => 'moderador'
        ]);
        Roles::create([
            'rol' => 'usuario'
        ]);
    }
public function run ( ) { Roles :: create ( [ 'rol' => 'administrador' ] ) ; Roles :: create ( [ 'rol' => 'moderador' ] ) ; Roles :: create ( [ 'rol' => 'usuario' ] ) ; }
Run the database seeds.
Run the database seeds .