DEV Community

Discussion on: How to Disable Users from Login in Laravel

Collapse
 
bdelespierre profile image
Benjamin Delespierre

Thank for the article. I find the status property very vague and indescriptive. Wouldn't it be better to have a is_banned flag?

Collapse
 
techtoolindia profile image
TechTool India

Thanks for suggestion. Yes you can use any flag which we can validate in middleware.