Cleaner Test Header Management with Laravel's withoutHeaders
Need to remove multiple headers in your Laravel tests? The new withoutHeaders method lets you do it in one clean shot! Let's explore this handy testing improvement.
The Old vs New Way
Previously, you had to chain multiple method calls:
// Old way
$this->withoutHeader('name'