path()); if ($request->path() !== 'license' && $request->path() !== 'livewire/message/license') { return redirect('license'); } } } return $next($request); } }