Laravel for Beginners – Learn to Build Full-Stack Web Apps

Loading video...

Fallback Routes

Typically when the route is not matched, Laravel will show 404 page, but if you want to handle all unmatched routes, this is how you can do it.

Route::fallback(function () {
    // Handle all unmatched routes
});

Discussion

Sign in to join the discussion.

No comments yet. Be the first to start the discussion!