skip to Main Content

Laravel – PostMan Unauthorized 401

I'm having an issue when trying to register a new user in my Laravel application that uses Passport for API authentication. Here's the scenario and the error I'm facing: Scenario: I'm developing a RESTful API with Laravel and using Passport…

VIEW QUESTION

Laravel Passport Api

BadMethodCallException: Method LaravelPassportGuardsTokenGuard::attempt does not exist. in file C:xampphtdocstestpassportapilaravel-backend-apivendorlaravelframeworksrcIlluminateMacroableTraitsMacroable.php on line 112 auth()->guard('api')->attempt($request->only(['email', 'password']))) This is supported passport or not, because this error shows at my end. How to solve this? config->auth.php `page` 'company' => [ 'driver' => 'session', 'provider'…

VIEW QUESTION
Back To Top
Search