Nov 19, 2015
0
Level 1
Validation redirect without errors MessageBag (or inputs values, etc.)
Hello everyone,
I had an issue in my project, where I can't get the MessageBag of errors with the Validator (automatic redirect or not). I've created a project from scratch to test this, and same issue… I think I'm probably missing something, but I can't find what's the problem.
Here you can find the source code (from scratch project) : https://github.com/zetura/lumen-validation-redirect-issue
What I've done :
- Modify the CACHE_DRIVER and SESSION_DRIVER for array (I don't use memcached)
- Create 2 methods in Controller.php
- Add the 2 routes for the Controller
- Create the home.blade.php view
- Uncomment some lines in bootstrap/app.php :
- Dotenv::load(DIR.'/../'); (for .env cache/session drivers)
- $app->withFacades(); (for Validator)
- Illuminate\Session\Middleware\StartSession::class, (for Session)
- Illuminate\View\Middleware\ShareErrorsFromSession::class, (for validation Errors)
Thanks for your help!
Please or to participate in this conversation.