Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mstfkhazaal's avatar

Customize Laravel Jetstream Error Page with inertia

I have a Project Laravel Jetstream with inertia, i need change the error page Like This to Vue page Error 403 I use https://inertiajs.com/error-handling but not work Exception Erro

0 likes
16 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Btw.. Just making sure here. You set APP_ENV=production in you env file right? Otherwise it wont work

Notice this line (only trigger if not local environment)

!app()->environment(['local', 'testing'])
2 likes
Sinnbeck's avatar

@mstfkhazaal Like I said, it is for production only. You can split it up if you want 403 to show your custom page :) I would show you how but as you posted pictures instead of code, I cannot copy it.

1 like
Sinnbeck's avatar

@mstfkhazaal Oh sorry I misunderstood then. You set APP_ENV=production and still get the old page?

1 like

Please or to participate in this conversation.