Hello everyone, my name is Olivia and I am developing a system for my course. It is a system for publishing volunteer job vacancies. It will have two types of users: NGOs and volunteers. I'm trying to authenticate the NGO user, who will log in with the CNPJ (a type of Brazilian registration) and password, but I'm encountering this error. Thank you!
#Authentication error
4 messages · Page 1 of 1 (latest)
Auth:: attemp function is default read from User Model, if you use custom Model for user (Ong) you should modify the config
So, a much easier approach would be to use roles. Just keep the default user stuff, Laravel authentication works out of the box, no need to make complicated changes. Then just attach a role to the user, indicating what type of user they are
modify in the config/auth.php?