Performance improvements #602 (#607)

* Update gitignore

* Save theme to the session to avoid a lookup #602

* Formatting

* Move routes into main service provider

* Move Observers into their own service provider
This commit is contained in:
Nabeel S
2020-03-01 15:51:00 -05:00
committed by GitHub
parent 21e2e48a6e
commit 4a14e83c88
17 changed files with 557 additions and 512 deletions

View File

@@ -1,6 +1,7 @@
<?php
use App\Exceptions\SettingNotFound;
use App\Repositories\SettingRepository;
use Carbon\Carbon;
use Illuminate\Contracts\View\Factory;
@@ -157,7 +158,7 @@ if (!function_exists('setting')) {
*/
function setting($key, $default = null)
{
$settingRepo = app('setting');
$settingRepo = app(SettingRepository::class);
try {
$value = $settingRepo->retrieve($key);