protected function resolveTheme($theme)
    {
        $theme  = $this->where('slug', $theme)->first();
        $parent = null;

        if ($theme->has('parent')) {
            $parent = $this->where('slug', $theme->get('parent'))->first();
        }

        return [$theme, $parent];
    }
protected function resolveTheme($theme)
    {
        $theme  = $this->where('slug', $theme)->first();
        $parent = null;

        if ($theme->has('parent')) {
            $parent = $this->where('slug', $theme->get('parent'))->first();
        }

        return [$theme, $parent];
    }
protected function resolveTheme ( $ theme ) { $ theme = $ this -> where ( 'slug' , $ theme ) -> first ( ) ; $ parent = null ; if ( $ theme -> has ( 'parent' ) ) { $ parent = $ this -> where ( 'slug' , $ theme -> get ( 'parent' ) ) -> first ( ) ; } return [ $ theme , $ parent ] ; }
Resolve and return the primary and parent themes.

@param  string  $theme
@return array
Resolve and return the primary and parent themes .