mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Removed settings middlware
(Already handled via AppServiceProvider)
This commit is contained in:
parent
81a0e06c40
commit
2603488bd6
|
@ -22,7 +22,6 @@ class Kernel extends HttpKernel
|
|||
\App\Http\Middleware\NosniffGuard::class,
|
||||
\App\Http\Middleware\CheckForSetup::class,
|
||||
\Fideloper\Proxy\TrustProxies::class,
|
||||
\App\Http\Middleware\GetAppSettings::class,
|
||||
\App\Http\Middleware\CheckForDebug::class,
|
||||
];
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Models\Setting;
|
||||
|
||||
use Closure;
|
||||
|
||||
class GetAppSettings
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$app_settings = Setting::getSettings();
|
||||
view()->share('app_settings', $app_settings);
|
||||
return $next($request);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue