ok
Direktori : /home2/selectio/www/myclassicfit.com/vendor/facade/ignition/src/Http/Middleware/ |
Current File : /home2/selectio/www/myclassicfit.com/vendor/facade/ignition/src/Http/Middleware/IgnitionEnabled.php |
<?php namespace Facade\Ignition\Http\Middleware; use Closure; use Illuminate\Http\Request; class IgnitionEnabled { /** * Handle an incoming request. * * @param Request $request * @param Closure $next * @return mixed */ public function handle($request, Closure $next) { if (! $this->ignitionEnabled()) { abort(404); } return $next($request); } protected function ignitionEnabled(): bool { return config('app.debug'); } }