ok

Mini Shell

Direktori : /home2/selectio/public_html/a1tex.in/vendor/facade/ignition/src/Http/Middleware/
Upload File :
Current File : /home2/selectio/public_html/a1tex.in/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');
    }
}

Zerion Mini Shell 1.0