call(PermissionSeeder::class); $user = User::create([ 'firstname' => 'Admin', 'surname' => '', 'email' => 'admin@localhost', 'password' => Hash::make('admin'), ]); DB::table('users')->where('id', $user->id)->update([ 'email_verified_at' => DB::raw('CURRENT_TIMESTAMP') ]); $user->assignRole('administrator'); } }