FormRequest $validator->after() times out

Posted 3 months ago by boneill81

Hi Guys,

Can anyone point me in the right direction as to why I am witnessing the behaviour below? In my form request I want to execute a function to do some formatting of attributes once the request has passed. But I have run into unusual behaviour which I cannot seem to pin down.

The below code is executed within the withValidator function on my FormRequest. I just can't see anything in the logs/docs that points me towards why this is happening and believe me I have searched extensively.

    //This works and logs 'Hello'
    $validator->after(function ($validator) {

    //This times out, it seems the addition of the passes() function causes this
    $validator->after(function ($validator) {


Please sign in or create an account to participate in this conversation.