in Laravel

Laravel Smoke Test Guest URLs

In this tutorial we're going to build a test class that will run through all guest URLs defined in our web.php routes and check that they all return a HTTP status of 200. This is allow us to quickly check all open URLs and make sure that there aren't any errors on these page.

Defining Your Routes

When you define your routes in Laravel you'll add them to the routes/web.php. Using the guest middleware will make sure that anybody can access

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email