Skip to content

[Bug]: Route [filament.{panel-id}.mails.preview] not defined on v4.x #77

Description

@m-ristau

What happened?

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:

use Backstage\Mails\Mails;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(MailsPlugin::make())
        ->routes(fn () => Mails::routes()); // add this
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions