Skip to content

Show a default error message when the middleware check fails#141

Merged
taylorotwell merged 3 commits intolaravel:1.xfrom
simonhamp:patch-1
Jun 2, 2025
Merged

Show a default error message when the middleware check fails#141
taylorotwell merged 3 commits intolaravel:1.xfrom
simonhamp:patch-1

Conversation

@simonhamp
Copy link
Contributor

When using the EnsureFeaturesAreActive middleware, you may see errors like this, which aren't super helpful.

Before

Screenshot 2025-05-29 at 22 02 30

After

Screenshot 2025-05-29 at 22 03 27

I'll add a test for this if desired.

@timacdonald
Copy link
Member

timacdonald commented May 30, 2025

I don't love that this will expose feature names in a non-debug environment.

An API response, for example, will show the feature names:

Screenshot 2025-05-30 at 16 09 51

@taylorotwell
Copy link
Member

Yeah, maybe need an environment check here.

@taylorotwell taylorotwell marked this pull request as draft May 30, 2025 13:46
@simonhamp simonhamp marked this pull request as ready for review May 30, 2025 16:43
@taylorotwell taylorotwell merged commit 312e8f8 into laravel:1.x Jun 2, 2025
10 checks passed
@simonhamp simonhamp deleted the patch-1 branch June 2, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants