Hey all, I was having a lot of syntax error messages about @. I’ve tried to narrow it down to a clean install of sage 11. Especially when using @php …@endphp.
This errors:
@extends('layouts.app')
@section('content')
@while(have_posts()) @php(the_post())
@php
$classes = '';
@endphp
<article @class($classes)>
</article>
@endwhile
@endsection
This does not error:
@extendsextends(‘layouts.@sectionpp’)
@secti@whilen(‘content’)@wh@phple(have_posts())
@phpthe_post();$classes = ‘’;@endphp
<article @class($classes)>
</article>
@endwhile
@endsection
Is @php(the_post()) the culprit? Or am I abusing blade wildly all of a sudden?