ok

Mini Shell

Direktori : /home2/selectio/www/bharath/a1tex.in/app/Http/Middleware/
Upload File :
Current File : /home2/selectio/www/bharath/a1tex.in/app/Http/Middleware/InstallationMiddleware.php

<?php

namespace App\Http\Middleware;

use Closure;

class InstallationMiddleware
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (session()->has('purchase_key') == false && env('PURCHASE_CODE') == null) {
            session()->flash('error', base64_decode('SW52YWxpZCBwdXJjaGFzZSBjb2RlIGZvciB0aGlzIHNvZnR3YXJlLg=='));
            return redirect('step2');
        }elseif(env('PURCHASE_CODE') != null){
            return $next($request);
        }

        return $next($request);
    }
}

Zerion Mini Shell 1.0