Skip to content

Instantly share code, notes, and snippets.

@duellsy
Last active December 17, 2015 09:58
Show Gist options
  • Save duellsy/5590921 to your computer and use it in GitHub Desktop.
Save duellsy/5590921 to your computer and use it in GitHub Desktop.
Check that a section has content in a laravel view, so you can determine if you want to display certain wrapping content etc
@if($__env->yieldContent('messages') != '')
<div class="messages">
<h1>Messages</h1>
@yield('messages')
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment