license = $license; } public function handle($request, Closure $next) { if ($this->license->shouldRecheck()) { $this->license->recheck(); } else if ($this->license->shouldCreateLicense()) { return redirect()->route('license.create'); } return $next($request); } }