urameshibr / lumen-form-request

Laravel Form Request adaptation for Lumen framework
3 stars 1 forks source link

Problem validating a custom request #1

Closed craigwillis85 closed 7 years ago

craigwillis85 commented 7 years ago

Hi

I'm trying to use your lib in a Lumen app I'm building. I have followed your install guide and created my own Request class.

This issue is, I get an error:

Call to undefined method Laravel\\Lumen\\Http\\Redirector::getUrlGenerator()

This happens on line 166 in:

vendor/urameshibr/lumen-form-request/src/Requests/FormRequest.php
urameshibr commented 7 years ago

Hi friend, could you tell me whats lumen version, please?

craigwillis85 commented 7 years ago

5.4 and probably 5.3 as well

urameshibr commented 7 years ago

Can you help me to reproduce the error? Show me what you are doing on the code, please. I'm testing and is working fine.

BogdanHossu commented 7 years ago

I have the same problem, what I did was to create a simple request, add some rules and authorize true. In my controller I have MyRequest $request and when trying to use the $request I get the above error.

BogdanHossu commented 7 years ago

I did fix the problem, ill make PR on your repo.