Removed settings middlware

(Already handled via AppServiceProvider)
This commit is contained in:
snipe 2016-11-29 01:19:52 -08:00
parent 81a0e06c40
commit 2603488bd6
2 changed files with 0 additions and 25 deletions

View file

@ -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,
];

View file

@ -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);
}
}