For more details:
The difference is in the Illuminate\View\Compilers\BladeCompiler result:
"blade.compiler" => Illuminate\View\Compilers\BladeCompiler {#948
#extensions: []
#customDirectives: []
#conditions: []
#path: "/var/www/html/app/Onlinests/App/Resources/views/layouts/static-top/default.blade.php"
#compilers: array:4 [
0 => "Comments"
1 => "Extensions"
2 => "Statements"
3 => "Echos"
]
#rawTags: array:2 [
0 => "{!!"
1 => "!!}"
]
#contentTags: array:2 [
0 => "{{"
1 => "}}"
]
#escapedTags: array:2 [
0 => "{{{"
1 => "}}}"
]
#echoFormat: "e(%s)"
#footer: []
#rawBlocks: []
#files: Illuminate\Filesystem\Filesystem {#177}
#cachePath: "/var/www/html/storage/framework/views"
#firstCaseInSwitch: true
-encodingOptions: 15
#lastSection: "javascript-section"
#forElseCounter: 0
}
When the body is included in the layout the path and last-section properties are set null.