DevMarketer / multiauth_tutorial

156 stars 83 forks source link

Admin login fail #22

Closed krasidankov closed 6 years ago

krasidankov commented 6 years ago

Hello everyone. When I want to login as an administrator in the admin login it is showing error. I am posting a screenshot of the error. This is Laravel 5.6. screenshot 101

If someone knows the solution, please share it. Thank you.

juliosouzam commented 6 years ago

Hey man, have you sure do you imported facade Auth in your project?

krasidankov commented 6 years ago

I have been doing everything the same from the videos and it doesn't work. This is the repository to see the full code. https://github.com/krasidankov/laravel-multi-auth

krasidankov commented 6 years ago

I managed somehow to fix the problem. I just put 'use Illuminate\Support\Facades\Auth;' at the top and it worked. P.S.: I'm new to Laravel and this maybe a really stupid mistake.