Skip to content

[Bug]: Panel plugin order causes unhandled errors #108

@MarkusPaul1989

Description

@MarkusPaul1989

What happened?

I noticed that the plugin causes problems when used in conjunction with the FilamentShieldPlugin.
When the FilamentShieldPlugin is loaded first, the routes are generated by the ApiServicePlugin before this plugin is registered in the panel.

Image

It would be useful to check whether the plugin is already loaded or at least throw an exception in the catch block in filament-api-service/routes/api.php to simplify error diagnosis.

How to reproduce the bug

$panel->plugin(FilamentShieldPlugin::make(), ApiServicePlugin::make())

Package Version

3.4.6

PHP Version

8.4

Laravel Version

12

Which operating systems does with happen with?

Linux

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions