* wip

* fix plugin uninstall

* marketplace
This commit is contained in:
Saeed Vaziry
2025-06-19 14:07:15 +02:00
committed by GitHub
parent 131b828807
commit 342a3aa4c6
35 changed files with 1973 additions and 934 deletions

View File

@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use App\Console\Commands\Plugins\InstallPluginCommand;
use App\Console\Commands\Plugins\LoadPluginsCommand;
use App\Console\Commands\Plugins\PluginsListCommand;
use App\Plugins\Plugins;
use Illuminate\Support\ServiceProvider;
class PluginsServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->bind('plugins', function () {
return new Plugins;
});
}
public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
InstallPluginCommand::class,
LoadPluginsCommand::class,
PluginsListCommand::class,
]);
}
}
}