Support the ongoing development of Laravel.io →
Authentication Eloquent

Hello,

I am making a web app for a college project and I am trying to have 3 different authentication types Students, Teachers and Admins. The Auth::guard('student')->attempt() works and returns true when I enter the correct details however Auth::guard('student')->check() returns false even tho I logged in just a second ago.

All of my code can be found here https://github.com/JackPriceBurns/sinap/tree/authentication

I am using LoginController for my authentication

Last updated 2 years ago.
0

hello @JackPriceBurns u can see my github about multi-auth admin and user...i just override the method https://github.com/ADENH/Multi-Auth-Laravel-5.3 u can add the type of user...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.