Commit fb5c264e authored by dhevanthareza's avatar dhevanthareza

..

parent 5e530c29
...@@ -35,6 +35,7 @@ class Authenticate ...@@ -35,6 +35,7 @@ class Authenticate
*/ */
public function handle($request, Closure $next, $guard = null) public function handle($request, Closure $next, $guard = null)
{ {
dd($request->header('Authorization'));
if ($this->auth->guard($guard)->guest()) { if ($this->auth->guard($guard)->guest()) {
return response()->json(['message' => "Unauthorized"], 200); return response()->json(['message' => "Unauthorized"], 200);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment