Newer
Older
<?php
namespace Spg\Test2;
use Illuminate\Support\ServiceProvider;
use Spg\Test2\Console\Test2Command;
class Test2ServiceProvider extends ServiceProvider
{
public function boot()
{
if ($this->app->runningInConsole()) {
$this->commands([
Test2Command::class
]);
}
}
public function register()
{
parent::register();
$this->commands([
Test2Command::class
]);
}
}