Source: paulund.co.uk

Laravel Make Auth Tests
In this tutorial we're going to expand on a built in Laravel command I use in almost every project the php artisan make:auth command. The make auth command will generate the routes, controllers and views for authentication in your Laravel project. When you run this command on a new project it will make the login controller, register controller, forgotten password controller and reset password controller.

The thing that's missing from this command is the tests that will make sure that you've implemented it correctly.

Test the application doesn't send the forgotten password email if the user doesn't exist.
Newsletter

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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners