Illuminate\Support\ServiceProvider::commands PHP Method

commands() public method

Register the package's custom Artisan commands.
public commands ( array | mixed $commands ) : void
$commands array | mixed
return void
    public function commands($commands)
    {
        $commands = is_array($commands) ? $commands : func_get_args();
        Artisan::starting(function ($artisan) use($commands) {
            $artisan->resolveCommands($commands);
        });
    }