Laravel Auth Problem for Web and Api Routes
问题 Unfortunately, I can't find a solution for a user case, which must actually occur frequently. To describe it best, I put here the structure of my routes (web and api) of my laravelapp: routes/web.php get(start|products|product/{id}|contact|inprint|login|register) get(checkout|checkout/(any))->middleware( auth ) // Checkout is a VUE App routes/api.php // only the Vue App use the api get(user|user_orders|user_address) ->middleware( auth ) post (purchase_order) -> middleware(auth) As you can