We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oddly, the @parent Blade directive won't work (meaning parent placeholder remains) if the @section directive is defined with double quotes.
@parent
@section
So this code works:
@section('header') @parent header @endsection
And this one don't:
@section("header") @parent header @endsection
Seems that the quotes make a difference in the ManagesLayouts::$parentPlaceholder array.
ManagesLayouts::$parentPlaceholder
Just create a layout with some @section and let it be extended by a view, and try to put single and double quotes around its name.
The text was updated successfully, but these errors were encountered:
Thank you, PR submitted with a fix #17677
Sorry, something went wrong.
No branches or pull requests
Description:
Oddly, the
@parent
Blade directive won't work (meaning parent placeholder remains) if the@section
directive is defined with double quotes.So this code works:
And this one don't:
Seems that the quotes make a difference in the
ManagesLayouts::$parentPlaceholder
array.Steps To Reproduce:
Just create a layout with some
@section
and let it be extended by a view, and try to put single and double quotes around its name.The text was updated successfully, but these errors were encountered: