app->isLocal()) { // $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); // } } /** * Bootstrap any application services. * * @return void */ public function boot() { $theme = theme(); // Share theme adapter class View::share('theme', $theme); // Set demo globally $theme->setDemo('demo1'); $theme->initConfig(); bootstrap()->run(); if (isRTL()) { // RTL html attributes Theme::addHtmlAttribute('html', 'dir', 'rtl'); Theme::addHtmlAttribute('html', 'direction', 'rtl'); Theme::addHtmlAttribute('html', 'style', 'direction:rtl;'); Theme::addHtmlAttribute('body', 'direction', 'rtl'); } } }