David Carrdcblogdev.hashnode.dev·Jun 26, 2022Laravel how to set app environment during testsIf you need to set an environment to be a specific one such as staging you can override the environment by changing the config value app_env config(['app.env' => 'staging']); Then doing a dd on config(‘app.env’) will return that environment you’v...755 readsLaravel TestingLaravelAdd a thoughtful commentNo comments yetBe the first to start the conversation.