I modified my file app/Providers/Filament/AdminPanelProvider.php to add the line referencing the plugin
class AdminPanelProvider extends PanelProvider{ public function panel(Panel $panel): Panel { return $panel ->default() ->id('admin') ->path('admin')<snip of default code> ->plugin(SimpleLightBoxPlugin::make()) ; }}
class AdminPanelProvider extends PanelProvider{ public function panel(Panel $panel): Panel { return $panel ->default() ->id('admin') ->path('admin')<snip of default code> ->plugin(SimpleLightBoxPlugin::make()) ; }}
When I tried to reload my app, I get an error
Class "App\Providers\Filament\SimpleLightBoxPlugin" not found
Class "App\Providers\Filament\SimpleLightBoxPlugin" not found
As there were no other installation / pre-req usage instructions I wondered whether this is me being ignorant of some typical steps you'd follow or if this is actually an issue with the installation of the plugin.
Filament SimpleLightbox is a PHP package that provides a simple and lightweight solution for implementing a lightbox feature in your Filament admin panel. It allows you to easily preview Image, PDF...
Solution
You need to import the class otherwise PHP just assumes it's in the same namespace as the current file. You'll need to add the following to the above the panel provider class:
use SolutionForest\FilamentSimpleLightBox\SimpleLightBoxPlugin;
use SolutionForest\FilamentSimpleLightBox\SimpleLightBoxPlugin;