Category: Laravel

Laravel Auth system has a lot of features, but it doesn’t include suspending users for some time, like banning some angry forum user for 14 days to calm down.
Here’s what the banned user will see after they try to log in:Step 1.
As an example, we take fresh Laravel 5.7 project with default migrations and make:auth command.
That’s why earlier we needed to add field as property in model.
If user is banned for 14 days or less, we show how many days of suspension are left.

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners