Laravel 5.3 Change user table in Auth
<p>I'm using Laravel 5.3 and used the <code>make:auth</code> artisan command to scaffold the login/registration system. I'm doing my login as companies, so I have a table called <code>Company</code>. How do I change the original sql to go get the email and password from the <code>Company</code> table instead of the <code>User</code> table?</p>

<p>I already tried to change in the <code>config/auth.php</code> file in the providers part, but when I changed <code>'model' =&gt; App\User::class,</code> to <code>'model' =&gt; App\Company::class,</code>, it started logging in, but regardless if the email and password input were completely wrong. Any ideas?</p>

<p>EDIT: After the <code>Company</code> registers and logs in, it has the ability to invite <code>Users</code>, therefore the original <code>User</code> table has to remain</p>