public function findOrFail($theme, $type = 'frontend')
    {
        if (in_array($type . '.' . $theme, array_keys($this->themes))) {
            return $this->themes[$type . '.' . $theme];
        }

        throw new ThemeNotFoundException('Theme not found!');
    }
public function findOrFail($theme, $type = 'frontend')
    {
        if (in_array($type . '.' . $theme, array_keys($this->themes))) {
            return $this->themes[$type . '.' . $theme];
        }

        throw new ThemeNotFoundException('Theme not found!');
    }
public function findOrFail ( $ theme , $ type = 'frontend' ) { if ( in_array ( $ type . '.' . $ theme , array_keys ( $ this -> themes ) ) ) { return $ this -> themes [ $ type . '.' . $ theme ] ; } throw new ThemeNotFoundException ( 'Theme not found!' ) ; }
Find or fail a theme.

@param string $theme
@param string $type
@return \Yajra\CMS\Themes\Theme
@throws \Yajra\CMS\Themes\Exceptions\ThemeNotFoundException
Find or fail a theme .