database/seeds/RoleTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $role = new Role();
        $role->name = 'admin';
        $role->description='Administrador';
        $role->save();
        $role = new Role();
        $role->name = 'inversionista';
        $role->description='inversionista';
        $role->save();
    }
public function run ( ) { $ role = new Role ( ) ; $ role -> name = 'admin' ; $ role -> description = 'Administrador' ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = 'inversionista' ; $ role -> description = 'inversionista' ; $ role -> save ( ) ; }
Run the database seeds.
Run the database seeds .
//TIPO 1 //TIPO 2