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()
    {
        $admin =User::create([
            'name' => 'Super Admin',
            'user_id' => 'superadmin15',
            'role_id' => 1,  
            'email' => 'superadmin@gmail.com',
            'password' => Hash::make('123456'),
        ]);
        $user =User::create([
            'name' => 'User ',
            'user_id' => 'user15',
            'email' => 'user@gmail.com',
            'password' => Hash::make('123456'),
        ]);
    }
public function run ( ) { $ admin = User :: create ( [ 'name' => 'Super Admin' , 'user_id' => 'superadmin15' , 'role_id' => 1 , 'email' => 'superadmin@gmail.com' , 'password' => Hash :: make ( '123456' ) , ] ) ; $ user = User :: create ( [ 'name' => 'User ' , 'user_id' => 'user15' , 'email' => 'user@gmail.com' , 'password' => Hash :: make ( '123456' ) , ] ) ; }
Run the database seeds.
Run the database seeds .
// 1 is super admin