for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sfneal\Cruise\Commands;
use Illuminate\Console\Command;
use Illuminate\Contracts\Console\PromptsForMissingInput;
class Version extends Command implements PromptsForMissingInput
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'version';
* The console command description.
protected $description = 'Display the application version';
* Execute the console command.
public function handle(): int
$this->info('v'.self::get());
return self::SUCCESS;
}
public static function get(): string
return file_get_contents(base_path('version.txt'));