actingAs(User::factory()->create()) ->get(route('models.index')) ->assertForbidden(); } public function test_user_can_list_asset_models() { $this->actingAs(User::factory()->superuser()->create()) ->get(route('models.index')) ->assertOk(); } }