mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
revert change
not needed
This commit is contained in:
parent
d2e2346806
commit
7f74afcd6f
@ -4,24 +4,17 @@ namespace App\Console\Commands\Plugin;
|
||||
|
||||
use App\Facades\Plugins;
|
||||
use App\Models\Plugin;
|
||||
use App\Traits\Commands\RequiresDatabaseMigrations;
|
||||
use Exception;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ComposerPluginsCommand extends Command
|
||||
{
|
||||
use RequiresDatabaseMigrations;
|
||||
|
||||
protected $signature = 'p:plugin:composer';
|
||||
|
||||
protected $description = 'Runs "composer require" on all installed plugins.';
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
if (!$this->hasCompletedMigrations()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$plugins = Plugin::all();
|
||||
foreach ($plugins as $plugin) {
|
||||
if (!$plugin->shouldLoad()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user