for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Commands\Php;
use App\Commands\BaseCommand;
use App\Models\PhpVersion;
class PhpDefault extends BaseCommand
{
/**
* The signature of the command.
*
* @var string
*/
protected $signature = 'php:default';
* The description of the command.
protected $description = 'Set the default PHP version';
* Execute the console command.
* @return void
public function handle(): void
$option = $this->menu(
'Available PHP versions',
PhpVersion::pluck('version_number', 'id')->toArray()
)->open();
if (!$option) {
return;
}
PhpVersion::setDefaultVersion($option);
$this->call('make-files');