nutgram/laravel

View on GitHub
src/Console/MakeCommandCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Nutgram\Laravel\Console;

class MakeCommandCommand extends BaseMakeCommand
{
    protected $signature = 'nutgram:make:command {name : Command name}';

    protected $description = 'Create a new Nutgram Command';

    /**
     * Return the sub directory name
     * @return string
     */
    protected function getSubDirName():string
    {
        return 'Commands';
    }

    /**
     * Return the stub file path
     * @return string
     */
    protected function getStubPath(): string
    {
        return __DIR__.'/../Stubs/Command.stub';
    }
}