Hi, I've heard it's best to write a validation that collects all errors into an array and so your test should receive an empty payload and return all the validation errors instead of writing ten tests for the same api endpoint. Can you show an example how to build such an error array please? Thanks
I've lost it half way. Why do we create App/Http/Response? I seem to remember it exists in Laravel somewhere. All controllers use it. Hit me if I'm asking a dumb thing 😅😅
@@GaryClarkeTech Ah, I see now, you don't use any framework! So if I use this on a laravel app, can I use use Illuminate\Http\Request; instead of writing one? Thanks!