I have a Laravel 5.3 site running in a local DEV WAMP environment and a PROD VPS through Forge and Digital Ocean.
I have a validator that redirects back with errors
if ($validator->fails()) {
return redirect()->action('MemberController@licinfo', ['id' => $id])
->withErrors($validator)
->withInput();
And a Blade template to show them
@if($errors->any())
<div class="alert alert-danger fade in">
<a href="#" class="close" data-dismiss="alert">×</a>
<ul>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
That gets included
@include('errors.list')
Here's my dilemma - in my local environment, this all works as expected, I get dismissable error blocks.
In my production environment, the errors don't display.
I'm tearing my hair out trying to figure out why.
My code is in Git, checked into the remote repository, and Forge is configured to quick deploy from the branch on checkins so I'm pretty certain the code on the production site is the same as my local copy.
Any suggestions as to what is going on here would be gratefully appreciated.