mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-24 13:04:01 +01:00
Clear filament cache when installing a plugin (#2017)
This commit is contained in:
parent
242a75bf3d
commit
1d5ace3a6d
@ -7,6 +7,7 @@ use App\Exceptions\Service\InvalidFileUploadException;
|
||||
use App\Models\Plugin;
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Exception;
|
||||
use Filament\Facades\Filament;
|
||||
use Filament\Panel;
|
||||
use Illuminate\Console\Application as ConsoleApplication;
|
||||
use Illuminate\Console\Command;
|
||||
@ -287,6 +288,10 @@ class PluginService
|
||||
$this->runPluginMigrations($plugin);
|
||||
|
||||
$this->runPluginSeeder($plugin);
|
||||
|
||||
foreach (Filament::getPanels() as $panel) {
|
||||
$panel->clearCachedComponents();
|
||||
}
|
||||
} catch (Exception $exception) {
|
||||
$this->handlePluginException($plugin, $exception);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user