Dingo\Api\Console\Command\Docs::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed
    public function handle()
    {
        $contents = $this->blueprint->generate($this->getControllers(), $this->getDocName(), $this->getVersion(), $this->getIncludePath());
        if ($file = $this->option('output-file')) {
            $this->writer->write($contents, $file);
            return $this->info('Documentation was generated successfully.');
        }
        return $this->line($contents);
    }