src/PageKitServiceProvider.php
public function pageTheme()
	        {


		view()->composer("*", function ($view) {

			/* get the theme if set in config */
			$theme = config("pagekit.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.page.index")):
			                        $theme = "theme.page.";
			else :
			                        $theme = "page::";
			endif;
			endif;

			view()->share('pageTheme', $theme);

		}
		);

	}
public function pageTheme()
	        {


		view()->composer("*", function ($view) {

			/* get the theme if set in config */
			$theme = config("pagekit.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.page.index")):
			                        $theme = "theme.page.";
			else :
			                        $theme = "page::";
			endif;
			endif;

			view()->share('pageTheme', $theme);

		}
		);

	}
public function pageTheme ( ) { view ( ) -> composer ( "*" , function ( $ view ) { /* get the theme if set in config */ $ theme = config ( "pagekit.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.page.index" ) ) : $ theme = "theme.page." ; else : $ theme = "page::" ; endif ; endif ; view ( ) -> share ( 'pageTheme' , $ theme ) ; } ) ; }
get the default theme
get the default theme