mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
37 lines
775 B
PHP
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',
|
|
],
|
|
]);
|
|
}
|
|
}
|