Trying to logout a logged in user using postman in laravel sanctum.
But error appearing like below:
Argument 1 passed to Illuminate\\Routing\\RouteFileRegistrar::{closure}() must be an instance of Illuminate\\Http\\Request, instance of Illuminate\\Routing\\Router given, called in E:\\Projects\\crowdFunding\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php on line 423"
Things I have done:
included
accept:application/jsonin postmanincluded bearer token
My logout code in controller:
return response()->json([ 'message' => 'logged out' ]);
But not working.