Generic process for installing plugins?
Hi a little confused - I wanted to use this plugin
https://github.com/solutionforest/Filament-SimpleLightBox
I ran the composer command
No problems.
I modified my file app/Providers/Filament/AdminPanelProvider.php to add the line referencing the plugin
When I tried to reload my app, I get an error
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.
Any pointers?
thanks
jGitHub
GitHub - solutionforest/Filament-SimpleLightBox: Filament SimpleLig...
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:Jump to 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:
...
3 Replies
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:
Perfect - so this is a general thing I guess - would you expect this to be in the README for a plugin?
But thanks so much for the quick response - the app now loads agin π
cheers
j
Usually in snippets that use an imported class they'd stick the "use" line above the snippet but I think most assume that people are using IDEs that would automatically flag this and prompt the import