diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ae3473a..6af8087 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -57,11 +57,15 @@ class AppServiceProvider extends ServiceProvider } View::share('published_tags', $tags); + //this is useful when setting up the app whene settings table doesn't exist yet + try { + $front_settings = Setting::where('key', 'LIKE', 'theme_%')->get(); + } catch (QueryException $e) { + $front_settings = null; + } //front theme settings - $front_settings = Setting::where('key', 'LIKE', 'theme_%')->get(); View::share('front_settings', $front_settings); - Blade::directive('fmt_currency', function ($expression) { return ""; });