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.
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 thefrom('/previous-route-url')
method.