database/seeds/UserTableSeeder.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' => 'aditya',
            'email' => 'adityajainmks@gmail.com',
            'password' => Hash::make('aditya7'),
            'remember_token' =>Str::random(60),
            'role' =>  1,
            ],
            [
                'name' => 'ashish',
                'email' => 'jain.ashish@gmail.com',
                'password' => Hash::make('ashish7'),
                'remember_token' =>Str::random(60),
                'role' =>  3,
            ],
            [
                'name' => 'ankit',
                'email' => 'ankit@gmail.com',
                'password' => Hash::make('ankit7'),
                'remember_token' =>Str::random(60),
                'role' =>  4,
            ]
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ [ 'name' => 'aditya' , 'email' => 'adityajainmks@gmail.com' , 'password' => Hash :: make ( 'aditya7' ) , 'remember_token' => Str :: random ( 60 ) , 'role' => 1 , ] , [ 'name' => 'ashish' , 'email' => 'jain.ashish@gmail.com' , 'password' => Hash :: make ( 'ashish7' ) , 'remember_token' => Str :: random ( 60 ) , 'role' => 3 , ] , [ 'name' => 'ankit' , 'email' => 'ankit@gmail.com' , 'password' => Hash :: make ( 'ankit7' ) , 'remember_token' => Str :: random ( 60 ) , 'role' => 4 , ] ] ) ; }
Run the database seeds.
Run the database seeds .