database/seeders/RolSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $rol = new rol();
        $rol->nombre_rol = "Director";
        $rol->timestamps = false;
        $rol->save();
        $rol = new rol();
        $rol->nombre_rol = "Secretaria";
        $rol->timestamps = false;
        $rol->save();
        $rol = new rol();
        $rol->nombre_rol = "Profesor";
        $rol->timestamps = false;
        $rol->save();
    }
public function run ( ) { $ rol = new rol ( ) ; $ rol -> nombre_rol = " Director " ; $ rol -> timestamps = false ; $ rol -> save ( ) ; $ rol = new rol ( ) ; $ rol -> nombre_rol = " Secretaria " ; $ rol -> timestamps = false ; $ rol -> save ( ) ; $ rol = new rol ( ) ; $ rol -> nombre_rol = " Profesor " ; $ rol -> timestamps = false ; $ rol -> save ( ) ; }
Run the database seeds.
Run the database seeds .