Evercode1\ViewMaker\RemoveViews::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed
    public function handle()
    {
        $this->folderName = $this->formatModelPath($this->argument('ModelName'));
        $path = base_path('resources/views/' . $this->folderName);
        if ($this->removeViewFiles($path)) {
            $this->sendSuccessMessage();
            return;
        }
        $this->error('No Such Directory');
    }