File "ProcessCommands.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-package-tools/src/Concerns/PackageServiceProvider/ProcessCommands.php
File size: 604 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?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;
}
}