mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Use import instead of direct model call
This commit is contained in:
parent
5becb93e6c
commit
60b271c6a8
|
@ -2,6 +2,7 @@
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use App\Models\Setting;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This service provider handles sharing the snipeSettings variable, and sets
|
* This service provider handles sharing the snipeSettings variable, and sets
|
||||||
|
@ -26,7 +27,7 @@ class SettingsServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
// Share common setting variables with all views.
|
// Share common setting variables with all views.
|
||||||
view()->composer('*', function ($view) {
|
view()->composer('*', function ($view) {
|
||||||
$view->with('snipeSettings', \App\Models\Setting::getSettings());
|
$view->with('snipeSettings', Setting::getSettings());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue