Adding a command to laravel deleting all unwanted users :-)

As spammer start flooding my users table with fake-accounts i startet to develop a command for laravel to run in a cron job for deleting all users which didnt verified their email within the last 24 hours.

A nice how-to do a laravel console command for cron can be found at:

This is my routine to select all users which haven’t confirmed their email and their register date is older than 24 hours.

Added the following command to the crontab by crontab -e on the webserver to execute the command: