lorisleiva / laravel-actions

⚡️ Laravel components that take care of one specific task
https://laravelactions.com
MIT License
2.52k stars 124 forks source link

FormRequest and rules() result in 'Too many redirects' #232

Closed syntaxlexx closed 1 year ago

syntaxlexx commented 1 year ago

"lorisleiva/laravel-actions": "^2.5",

public function rules(): array
    {
        return [
            'title' => ['required', 'min:8'],
            'body' => ['required', IsValidMarkdown::class],
        ];
    }

    public function asController(ActionRequest $request)
    {
    }
}

Seem to always result in some 'infinity redirection' error. Same case applies when used with FormRequest