how do I do an authentication triage in Laravel 6.12?

  authentication, laravel

I am using laravel 6.12 using the Authentication artisan command

php artisan ui vue --auth

I have been following https://laraveldaily.com/auth-login-how-to-check-more-than-just-emailpassword/ website . I would like to know the steps needed to authenticate with a triage i.e company, email address and password.

I am receiving a duplicate when I add company name, it thinks this is the email address. Where do you change this? And I am recieving the following error.

BadMethodCallException
Method AppHttpControllersAuthLoginController::company does not exist.

$credentials = $request->only($this->username(), 'password');
$credentials = array_add($credentials, 'company');

I need to Verify the Company name as part of the authentication process. with email, password & Company. Does anyone know how to authenticate using three authentication credentials?

Source: Laravel StackOverflow

Leave a Reply