Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
login如果我收到A token is required来自JWTException.
login
A token is required
JWTException
您可以使用中间件检查令牌:
class CheckTokenMiddleware { public function handle($request, Closure $next) { // Check token here. if (!checkToken($request->token)) { return redirect('login'); } return $next($request); } }