diff --git a/composer.json b/composer.json index 75436910..8f7e96c2 100644 --- a/composer.json +++ b/composer.json @@ -18,19 +18,19 @@ "php": "^8.1", "doctrine/sql-formatter": "^1.1", "guzzlehttp/promises": "^1.0 || ^2.0", - "illuminate/auth": "^10.21", - "illuminate/cache": "^10.21", - "illuminate/config": "^10.21", - "illuminate/console": "^10.21", - "illuminate/contracts": "^10.21", - "illuminate/database": "^10.21", - "illuminate/events": "^10.21", - "illuminate/http": "^10.21", - "illuminate/queue": "^10.21", - "illuminate/redis": "^10.21", - "illuminate/routing": "^10.21", - "illuminate/support": "^10.21", - "illuminate/view": "^10.21", + "illuminate/auth": "^10.34", + "illuminate/cache": "^10.34", + "illuminate/config": "^10.34", + "illuminate/console": "^10.34", + "illuminate/contracts": "^10.34", + "illuminate/database": "^10.34", + "illuminate/events": "^10.34", + "illuminate/http": "^10.34", + "illuminate/queue": "^10.34", + "illuminate/redis": "^10.34", + "illuminate/routing": "^10.34", + "illuminate/support": "^10.34", + "illuminate/view": "^10.34", "livewire/livewire": "^3.2", "nesbot/carbon": "^2.67" }, diff --git a/src/PulseServiceProvider.php b/src/PulseServiceProvider.php index b93131b1..5c1a47af 100644 --- a/src/PulseServiceProvider.php +++ b/src/PulseServiceProvider.php @@ -2,12 +2,14 @@ namespace Laravel\Pulse; +use Composer\InstalledVersions; use Illuminate\Auth\Events\Logout; use Illuminate\Contracts\Auth\Access\Gate; use Illuminate\Contracts\Console\Kernel as ConsoleKernel; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Http\Kernel as HttpKernel; +use Illuminate\Foundation\Console\AboutCommand; use Illuminate\Queue\Events\Looping; use Illuminate\Queue\Events\WorkerStopping; use Illuminate\Routing\Router; @@ -216,6 +218,11 @@ protected function registerCommands(): void Commands\RestartCommand::class, Commands\PurgeCommand::class, ]); + + AboutCommand::add('Pulse', fn () => [ + 'Version' => InstalledVersions::getPrettyVersion('laravel/pulse'), + 'Enabled' => AboutCommand::format(config('pulse.enabled'), console: fn ($value) => $value ? 'ENABLED' : 'OFF'), + ]); } } }