We came up with the following solution in case anyone else has the same question. Because the app under test will be running on it's own testing server, we can just remove authentication altogether. We'll do this by creating 2 auth service providers--one for extending Auth with our real authentication driver and another for extending Auth with a dummy driver. Inside of an environment-specific config for the testing server, we'll register the dummy service provider whereas production will register the normal provider.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community