<?php
namespace Nwidart\Modules\Commands;
use Illuminate\Support\Str;
use Nwidart\Modules\Support\Config\GenerateConfigReader;
use Nwidart\Modules\Support\Stub;
use Nwidart\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument;
class ComponentClassMakeCommand extends GeneratorCommand
{
use ModuleCommandTrait;
protected $argumentName = 'name';
protected $name = 'module:make-component';
protected $description = 'Create a new component-class for the specified module.';
public function handle() : int
{
if (parent::handle() === E_ERROR) {
return E_ERROR;
}
$this->writeComponentViewTemplate();
return 0;
}