database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
         User::Create([
            'first_name'=>'admin',
            'email'=>'admin@qasim.com',
            'password'=>bcrypt('123456'),
            'role_id'=> 1
        ]);
        User::Create([
            'first_name'=>'User',
            'email'=>'User@qasim.com',
            'password'=>bcrypt('123456'),
            'role_id'=> 2
        ]);
    }
public function run ( ) { User :: Create ( [ 'first_name' => 'admin' , 'email' => 'admin@qasim.com' , 'password' => bcrypt ( '123456' ) , 'role_id' => 1 ] ) ; User :: Create ( [ 'first_name' => 'User' , 'email' => 'User@qasim.com' , 'password' => bcrypt ( '123456' ) , 'role_id' => 2 ] ) ; }
Run the database seeds.
Run the database seeds .