Can I render a custom 403 page within the context of a panel?
The default 403 is a bit jarring to look at when you are navigating around a panel.Is there a way I can render a 403 within the context of a panel? I basically just want the panel layout, or even just the panels custom theme CSS to be available in
errors/403.blade.php
. I tried using a panel components like <x-filament-panels:layout.base>
but they are all are missing their class methods / context.2 Replies
Because this component is a dependent component. You can not use directly. Basicly you want 403 page but with left and top layout.
It's basic solution but you can try this;
- CTRL + u and copy all content,
- Clear inside of <main> tag and replace your 403 style (and clear wire tags)
- Additional you can use links static or for resource page access with this; CustomerResource::getUrl();
But it can be causes some problems if you use spa
Thanks! I ended up doing publishing the laravel errors layout (
resources/views/errors/minimal.blade.php
), which is an okay solution: