database/seeds/LevelTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \DB::table('levels')->delete();
        \DB::table('levels')->insert( array (
            0 => array(
                'users_id' =>1,
                'level' => 'ADMIN'
            ),
            1 => array(
                'users_id' =>2,
                'level' => 'EMPLOYEE'
            ),
        ));
    }
public function run ( ) { \ DB :: table ( 'levels' ) -> delete ( ) ; \ DB :: table ( 'levels' ) -> insert ( array ( 0 => array ( 'users_id' => 1 , 'level' => 'ADMIN' ) , 1 => array ( 'users_id' => 2 , 'level' => 'EMPLOYEE' ) , ) ) ; }
Run the database seeds.
Run the database seeds .