protected function getOnlyViews()
    {
        $viewsToCreate = Helpers::removeEmptyItems(explode(',', $this->option('only-views')));

        return array_intersect($this->views, $viewsToCreate);
    }
protected function getOnlyViews()
    {
        $viewsToCreate = Helpers::removeEmptyItems(explode(',', $this->option('only-views')));

        return array_intersect($this->views, $viewsToCreate);
    }
protected function getOnlyViews ( ) { $ viewsToCreate = Helpers :: removeEmptyItems ( explode ( ',' , $ this -> option ( 'only-views' ) ) ) ; return array_intersect ( $ this -> views , $ viewsToCreate ) ; }
Gets the valid view names after checking the user's only-views option.

@param string $path

@return $this
Gets the valid view names after checking the user s only - views option .