harikt / web.expressive

Zend expressive admin backend with Dms ( https://github.com/dms-org )
MIT License
7 stars 1 forks source link

Validation errors #8

Closed harikt closed 6 years ago

harikt commented 7 years ago

Laravel have something like redirect()->back()->withInput()->withErrors() . Need to bring the errors / input back after redirect.

IHackPy commented 7 years ago

I would like to work on this Issue

harikt commented 7 years ago

Hi @HimanshuAwasthi95 ,

Thank you for your interest working on this.

You may want to look into how the laravel function redirect is making use of with , withErrors, withInput etc. This is what I think, we may need to save these in a Aura.Session flash, and then get this on the next request. The result we obtained need to be converted to Illuminate\Support\MessageBag which is actually used inside blade.

Let me know if you need anything else. I do understand this probably is not an easy task, but can understand / follow the internals even if you cannot make this happen.

Thank you for your time.

harikt commented 6 years ago

This is partially done via https://github.com/harikt/web.expressive/pull/34 and looks like a good start.

harikt commented 6 years ago

Closing this now. This will be fixed via issues #47 and #48 .