I’ve written a couple of websites using Sage and, while it’s a great tool, the bizarre problems I’ve been having with blade is getting me down.
Here’s an example.
I have written the following logic:
// snip <section class="posts"> @while (have_posts()) @php(the_post()) @php global $post; echo $post->menu_order; @endphp @include('partials.content-'.get_post_type(), ['image' => $controller::getImage()]) @endwhile </section>
I iterated to this working point, and a few iterations ago it had errors - fair enough, but now that the code is actually fine, blade hasn’t caught up and insists there’s an error.
This is what I see, using the WHOOPS debugging tool:
This shows that blade is not catching up with the changes.
What do I have to do to get it to behave?