Auth laravel authentication

1

Good morning, I decided to disable users, now I would like to know how I can allow user login only enabled, in table users I added a column called disable, if user disable is false allows login, if not redirects to the screen Login, I'll be waiting.

    
asked by anonymous 20.02.2018 / 15:57

1 answer

2

I advise you to use softDelete of Laravel to disable users. There you do not need to change the authentication method. and even for you to "disable" users is simpler.

Ref: link

    
20.02.2018 / 16:28