Evercode1\ViewMaker\MakeCrud::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed
    public function handle()
    {
        $this->modelName = $this->formatModel($this->argument('ModelName'));
        $this->slug = $this->argument('Slug');
        $this->setCrudTokens();
        $this->setFilePaths();
        if ($this->makeCrudFiles()) {
            $this->sendSuccessMessage();
            return;
        }
        $this->error('Oops, something went wrong!');
    }