get(); } catch (QueryException $e) { $ranges = null; } View::share('published_ranges', $ranges); //this is useful when setting up the app when tags table doesn't exist yet try { // on partage les tags $tags = Tag::where('status', '1')->orderBy('order', 'ASC')->get(); } catch (QueryException $e) { $tags = null; } View::share('published_tags', $tags); //front theme settings $front_settings = Setting::where('key', 'LIKE', 'theme_%')->get(); View::share('front_settings', $front_settings); Blade::directive('fmt_currency', function ($expression) { return ""; }); Blade::directive('fmt_sellunit', function ($expression) { return ""; }); //default paginator template for back Office Paginator::useBootstrap(); } }