middleware驗證要走的路:Route::middleware('auth:api') → 驗證後面帶的參數,這邊的auth是對應到config/auth裡的guard下定義的驗證方式。
確定! 回上一頁