Files
vito/app/SiteTypes/Laravel.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

37 lines
775 B
PHP

<?php
namespace App\SiteTypes;
use App\Models\Site;
class Laravel extends PHPSite
{
public static function id(): string
{
return 'laravel';
}
public static function make(): self
{
return new self(new Site(['type' => self::id()]));
}
public function baseCommands(): array
{
return array_merge(parent::baseCommands(), [
[
'name' => 'cache:clear',
'command' => 'php artisan cache:clear',
],
[
'name' => 'down',
'command' => 'php artisan down --retry=5 --refresh=6 --quiet',
],
[
'name' => 'up',
'command' => 'php artisan up',
],
]);
}
}