Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -6,57 +6,29 @@
class Laravel extends PHPSite
{
public static function id(): string
{
return 'laravel';
}
public static function make(): self
{
return new self(new Site(['type' => \App\Enums\SiteType::LARAVEL]));
return new self(new Site(['type' => self::id()]));
}
public function baseCommands(): array
{
return array_merge(parent::baseCommands(), [
// Initial Setup Commands
[
'name' => 'Generate Application Key',
'command' => 'php artisan key:generate',
],
[
'name' => 'Create Storage Symbolic Link',
'command' => 'php artisan storage:link',
],
// Database Commands
[
'name' => 'Run Database Migrations',
'command' => 'php artisan migrate --force',
],
// Cache & Optimization Commands
[
'name' => 'Optimize Application',
'command' => 'php artisan optimize',
],
[
'name' => 'Clear All Application Optimizations',
'command' => 'php artisan optimize:clear',
],
[
'name' => 'Clear Application Cache Only',
'name' => 'cache:clear',
'command' => 'php artisan cache:clear',
],
// Worker Commands
[
'name' => 'Restart Workers',
'command' => 'php artisan queue:restart',
],
[
'name' => 'Clear All Failed Queue Jobs',
'command' => 'php artisan queue:flush',
],
// Application State Commands
[
'name' => 'Put Application in Maintenance Mode',
'name' => 'down',
'command' => 'php artisan down --retry=5 --refresh=6 --quiet',
],
[
'name' => 'Bring Application Online',
'name' => 'up',
'command' => 'php artisan up',
],
]);