Courses

Advanced Laravel Testing

HTTP Request with Redirects: Check the FINAL Response

Previous: How to Test Job Classes
avatar

Something similar I thought would be good to note (and I don't think you mentioned in either course): If you're using return back()->with('some', 'data') in your controller and want to test that you're returned back to the previous page (such as an edit form or a listing of items) with a message shown, chain on the from('/previous-route-url') method.

avatar
You can use Markdown
avatar
You can use Markdown