Skip to content
Test2ServiceProvider.php 508 B
Newer Older
Ali Kazemi's avatar
Ali Kazemi committed
<?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
        ]);
    }
}