Evercode1\ViewMaker\RemoveCrud::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->modelPath = $this->formatModelPath($this->argument('ModelName'));
        $this->setPaths();
        if ($this->deleteCrudFiles()) {
            $this->sendSuccessMessage();
            return;
        }
        $this->error('Oops, something went wrong!');
    }