database/seeds/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $data=array(
            array(
                'name'=>'Admin',
                'email'=>'admin@gmail.com',
                'password'=>Hash::make('1111'),
                'role'=>'admin',
                'status'=>'active'
            ),
            array(
                'name'=>'User',
                'email'=>'user@gmail.com',
                'password'=>Hash::make('1111'),
                'role'=>'user',
                'status'=>'active'
            ),
        );
        DB::table('users')->insert($data);
    }
public function run ( ) { $ data = array ( array ( 'name' => 'Admin' , 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( '1111' ) , 'role' => 'admin' , 'status' => 'active' ) , array ( 'name' => 'User' , 'email' => 'user@gmail.com' , 'password' => Hash :: make ( '1111' ) , 'role' => 'user' , 'status' => 'active' ) , ) ; DB :: table ( 'users' ) -> insert ( $ data ) ; }
Run the database seeds.
Run the database seeds .