Closed mortenscheel closed 1 year ago
This is valid blade:
<title>@yield('title', config('app.name'))</title>
But when laravel-blade-comments is installed, it causes a ParseError that doesn't seem to make much sense. Screenshot:
ParseError
Create a simple blade layout file containing this title tag in the
Try to render a blade file that extends the layout.
Note: It doesn't matter if you override the 'title' section in the view or not.
1.0.0
8.2.5
10.11.0
Linux
No response
Nice catch, looks like the regex is incorrect for @yield that also passes a variable. I'm going to patch this.
@mortenscheel I pushed a minor update that should resolve your issue.
What happened?
This is valid blade:
But when laravel-blade-comments is installed, it causes a
ParseError
that doesn't seem to make much sense. Screenshot:How to reproduce the bug
Create a simple blade layout file containing this title tag in the
Try to render a blade file that extends the layout.
Note: It doesn't matter if you override the 'title' section in the view or not.
Package Version
1.0.0
PHP Version
8.2.5
Laravel Version
10.11.0
Which operating systems does with happen with?
Linux
Notes
No response