database/seeds/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('users')->insert([
            [
            'name' => 'nikhil jain',
            'email' => 'nikhil@gmail.com',
            'password' => Hash::make('nikhil7'),
            'remember_token' =>Str::random(60),
            'role' =>  'admin',
            ]
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ [ 'name' => 'nikhil jain' , 'email' => 'nikhil@gmail.com' , 'password' => Hash :: make ( 'nikhil7' ) , 'remember_token' => Str :: random ( 60 ) , 'role' => 'admin' , ] ] ) ; }
Run the database seeds.
Run the database seeds .