芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/app/Http/Middleware/APIGuestMiddleware.php
header('Authorization') && app('auth')->guard('api')){ $request->merge(['user'=>auth('api')->user()]); return $next($request); }elseif($request->guest_id){ return $next($request); } return response()->json(['Unauthorized', 401]); } }