protected function removeRegisteredLocation()
    {
        $current         = $this->where('slug', $this->getCurrent())->first();
        $currentLocation = $this->path('resources/views');

        app('view.finder')->removeLocation($currentLocation);

        if ($current->has('parent')) {
            $parent         = $this->where('slug', $current->get('parent'))->first();
            $parentLocation = $this->path('resources/views', $parent->slug);
            app('view.finder')->removeLocation($parentLocation);
        }
    }
protected function removeRegisteredLocation()
    {
        $current         = $this->where('slug', $this->getCurrent())->first();
        $currentLocation = $this->path('resources/views');

        app('view.finder')->removeLocation($currentLocation);

        if ($current->has('parent')) {
            $parent         = $this->where('slug', $current->get('parent'))->first();
            $parentLocation = $this->path('resources/views', $parent->slug);
            app('view.finder')->removeLocation($parentLocation);
        }
    }
protected function removeRegisteredLocation ( ) { $ current = $ this -> where ( 'slug' , $ this -> getCurrent ( ) ) -> first ( ) ; $ currentLocation = $ this -> path ( 'resources/views' ) ; app ( 'view.finder' ) -> removeLocation ( $ currentLocation ) ; if ( $ current -> has ( 'parent' ) ) { $ parent = $ this -> where ( 'slug' , $ current -> get ( 'parent' ) ) -> first ( ) ; $ parentLocation = $ this -> path ( 'resources/views' , $ parent -> slug ) ; app ( 'view.finder' ) -> removeLocation ( $ parentLocation ) ; } }
Remove the primary and parent theme from the view finder.

@param  Manifest  $theme
Remove the primary and parent theme from the view finder .