Answers for "Laravel JWT error BadMethodCallException: Method Illuminate\Auth\SessionGuard::factory does not exist. in file C:\OSPanel\domains\xarid.loc\vendor\laravel\framework\src\Illuminate\Macroable\Traits\"

PHP
1

Laravel JWT error BadMethodCallException: Method IlluminateAuthSessionGuard::factory does not exist. in file C:OSPaneldomainsxarid.locvendorlaravelframeworksrcIlluminateMacroableTraits

return response()->json([
        'access_token' => $token,
        'token_type' => 'bearer',
        //'expires_in' => auth()->factory()->getTTL() * 60
        'expires_in' => auth('api')->factory()->getTTL() * 60
    ]);
Posted by: Guest on October-30-2021

Code answers related to "Laravel JWT error BadMethodCallException: Method Illuminate\Auth\SessionGuard::factory does not exist. in file C:\OSPanel\domains\xarid.loc\vendor\laravel\framework\src\Illuminate\Macroable\Traits\"

Browse Popular Code Answers by Language