create(); $user->assignRole($role); $this->actingAs($user)->get('/admin')->assertSuccessful(); })->with(['super_admin', 'admin', 'support']); test('a user without an admin-tier role cannot access the admin panel', function () { $user = User::factory()->create(); $this->actingAs($user)->get('/admin')->assertForbidden(); });