public function themeDefaults()
    {

        view()->composer("*", function ($view) {
            /* get the theme if set in config */
            $theme = config("dash.theme", null);
            /* if not theme is set in the config */
            /* check the theme folder if exist or use the theme in package*/
            if (!$theme):
                if (view()->exists("theme.dash.index")):
                    $theme = "theme.dash.";
                else :
                    $theme = "dash::";
                endif;
            endif;
            view()->share('dashTheme', $theme);

        });

    }
public function themeDefaults()
    {

        view()->composer("*", function ($view) {
            /* get the theme if set in config */
            $theme = config("dash.theme", null);
            /* if not theme is set in the config */
            /* check the theme folder if exist or use the theme in package*/
            if (!$theme):
                if (view()->exists("theme.dash.index")):
                    $theme = "theme.dash.";
                else :
                    $theme = "dash::";
                endif;
            endif;
            view()->share('dashTheme', $theme);

        });

    }
public function themeDefaults ( ) { view ( ) -> composer ( "*" , function ( $ view ) { /* get the theme if set in config */ $ theme = config ( "dash.theme" , null ) ; /* if not theme is set in the config */ /* check the theme folder if exist or use the theme in package*/ if ( ! $ theme ) : if ( view ( ) -> exists ( "theme.dash.index" ) ) : $ theme = "theme.dash." ; else : $ theme = "dash::" ; endif ; endif ; view ( ) -> share ( 'dashTheme' , $ theme ) ; } ) ; }
get the default theme
get the default theme