user(); if ($user && $this->subscriptions->isPro($user)) { return $next($request); } if ($request->expectsJson()) { return response()->json(['message' => 'This feature requires Ladill POS Pro.'], 402); } return redirect()->route('pos.pro.index') ->with('upsell', 'That feature is part of Ladill POS Pro — subscribe to unlock it.'); } }