Blade has a
@once directive that’s just what I need at the moment. But, it doesn’t seem to work in Sage.
Doing something like this…
@once @push('scripts') <script>console.log('pushed!');</script> @endpush @endonce
…successfully pushes the script tag to the ‘scripts’ stack, but the
@once directive appears to be ignored.
@endonce just end up as strings in the markup.
@once supported in Sage?