While working on a project, I was trying to find out the possibility of adding multiple yields to a layout, e.g. if I have a javascript that I would like to run in a page, but not the others, so as to save some resources, this could be easily done with having multiple yields on a blade template layout. Here is how to go about doing it.

<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="main">
@yield('content')
</div>
@include('includes.default-js')
@yield('more-js', '')
// this will set the default value as '', useful for those pages
// that you didn't want to set, or forget to set any values to this section.
</body>
</html>