You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Route [filament.{panel-id}.mails.preview] not defined on v4.x #77
On v4.x, the mail preview throws the following error: Route [filament.{panel-id}.mails.preview] not defined.
How to reproduce the bug
PR #72 fixed this for the main branch (v3.x) by auto-registering routes inside MailsPlugin::register(), but the fix has not been carried over to the v4.x branch yet.
Package Version
4.0.8
PHP Version
8.4.20
Laravel Version
12.56.0
Which operating systems does with happen with?
Linux
Notes
Until this is fixed, add the following to your PanelProvider manually:
Activity
mhortulanus commentedon Jul 22, 2026
@markvaneijk I think we could place the
routes()in the booting of the plugin.markvaneijk commentedon Aug 4, 2026
@mhortulanus If you read the issue you see it was already fixed in 3.x, only to be discarded again in 4.x/5.x :)
I fixed it by releasing it again in v4.2.9 and v5.1.14!
fix(mails): auto-register mail routes in the Filament plugin