X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
spatie
laravel-package-tools
src
Concerns
PackageServiceProvider
Cancel
Backup
Advanced Editor
Save
<?php namespace Spatie\LaravelPackageTools\Concerns\PackageServiceProvider; trait ProcessCommands { protected function bootPackageCommands(): self { if (empty($this->package->commands)) { return $this; } $this->commands($this->package->commands); return $this; } protected function bootPackageConsoleCommands(): self { if (empty($this->package->consoleCommands) || ! $this->app->runningInConsole()) { return $this; } $this->commands($this->package->consoleCommands); return $this; } }