We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7072f7c commit 414259cCopy full SHA for 414259c
src/Flynsarmy/DbBladeCompiler/DbView.php
@@ -74,7 +74,7 @@ public function render(Closure $callback = null)
74
// Once we have the contents of the view, we will flush the sections if we are
75
// done rendering all views so that there is nothing left hanging over when
76
// anothoer view is rendered in the future by the application developers.
77
- View::flushStateIfDoneRendering();
+ ( str_contains( app()->version(), ['5.3','5.2', '5.1']) ? View::flushSectionsIfDoneRendering() : View::flushStateIfDoneRendering());
78
79
return $response ?: $contents;
80
}
0 commit comments