Getting an instance of the Laravel IOC container for testing.
ONLY IF THE FUNCTIONAL TEST IS INSIDE A LARAVEL PACKAGE YOU CAN DO THE FOLLOWING:
EXTEND THIS FROM YOUR PARENT TEST CLASS.
Create your own request!
Before your code run in controller the validation was check the all input.
When something wrong, its return redirect back with all error.
And you can overwrite the default error messages!