✏️ Edit: InstallationMiddleware.php
Path:
/home/thiqat5/tmphone.thiqatech.com/tm/app/Http/Middleware/InstallationMiddleware.php
Size: 675 B · Modified: 2021-11-17 23:00:14 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?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); } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF