So, this appears to be a big issue for people upgrading from 5.* to 5.2. I searched online for a while trying many different methods, but none would work. Appears it's all related to the new web middleware. I've done the usual troubleshooting I've read online, i.e. moving session and share errors middleware to global, wrap routes in group with web, etc etc. Nothing has worked.
To avoid the mess and mucking up my routes file even more, I just replaced my RouteServiceProvider with the L5.2 default file - that adds the web middleware automatically. I have this exact file: http://ift.tt/267Wgxu
As for the problem itself, if I force my Form Request to fail validation, instead of the errors appearing on my view (like it did prior to upgrade), it shows a Whoops with the following (which looks like the validation is working). But something is up passing data to view.
Illuminate \ Http \ Exception \ HttpResponseException
throw new HttpResponseException($this->response(
$this->formatErrors($validator)
));
Tipsters...help a fellow member out.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire