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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners