DEV Community

Discussion on: Laravel Form Request Tips & Tricks.

dericlima profile image

Hello Mohammed, I found out what the issue was. Actually it's a bug that's happening with Lumen only during tests.

When you try to access the model with $this->route('model') during tests, a array is being returned instead, which makes the code to break.

Everything is clear now. Thanks for your time.

If you are interested about the issue, more details here: