---
title: "Discussion on \"Laravel Testing: Assert Final Page Content After a Redirect\" | Hashnode"
description: "Discussion on \"Laravel Testing: Assert Final Page Content After a Redirect\". POST requests only return a 302, hiding the final page. Use followingRedirects() to automatically follow redirects and assert on the destination page content."
url: "https://hashnode.com/posts/laravel-testing-what-happens-after-a-redirect/69a63e077c322c8c4bf0a567"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel Testing: Assert Final Page Content After a Redirect](https://recca0120.hashnode.dev/laravel-testing-what-happens-after-a-redirect?utm_source=hashnode&utm_medium=feed)

POST requests only return a 302, hiding the final page. Use followingRedirects() to automatically follow redirects and assert on the destination page content.

Mar 3 · 1 min read · recca0120.hashnode.dev  
Updated Apr 20  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#phpunit](https://hashnode.com/tag/phpunit)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[recca0120](https://hashnode.com/@recca0120)

@recca0120 · Taipei, Taiwan

  
[View profile](https://hashnode.com/@recca0120)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
