I am using OAuth laravel repo, I set it up correctly but when trying to import a class for credentials, I run into 'class not found' error.
I have a function:
'grant_types' => [
'password' => [
'callback' => '\App\PasswordVerifier@verify',
]
]
My directory looks like this:
app
--PasswordVerifier.php
config
--oauth.php (above chunk)
However, I am getting error:
ReflectionException in Container.php line 737: Class \App\PasswordVerifier does not exist
PasswordVerifier.php looks like this:
// namespace App\PasswordVerifier; - I tried with/without adding this line
use Illuminate\Support\Facades\Auth;
class PasswordVerifier
{
public function verify($username, $password)
{
...
Note that changing 'callback' => '\App\PasswordVerifier@verify
is resulting in change in the name of class in the error log.