© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
jjo63

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

composer require solution-forest/filament-simplelightbox
composer require solution-forest/filament-simplelightbox


No problems.

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.

Any pointers?

thanks
j
GitHub
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...
GitHub - solutionforest/Filament-SimpleLightBox: Filament SimpleLig...
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;
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Upgrade guide for plugins
FilamentFFilament / ❓┊help
6mo ago
navigationGroup is posible for plugins?
FilamentFFilament / ❓┊help
2y ago
Installing plugins - resource page now showing but register method exists?
FilamentFFilament / ❓┊help
3y ago
Trouble installing Curator and Fabricator plugins (can't install filament resources)
FilamentFFilament / ❓┊help
3y ago