You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was using Livewire components and Blade components, I made a mistake on the syntax on the syntax to render a Blade component by using a : (as Livewire components) to separate the x and the component name but it doesn't throw errors and the blade component is displayed.
I've searched some information about that syntax on the documentation and forums, but I found nothing.
So I've search on the source code when how is this possible and I find the : is allowed as separator.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
While I was using Livewire components and Blade components, I made a mistake on the syntax on the syntax to render a Blade component by using a
:
(as Livewire components) to separate thex
and the component name but it doesn't throw errors and the blade component is displayed.I've searched some information about that syntax on the documentation and forums, but I found nothing.
So I've search on the source code when how is this possible and I find the
:
is allowed as separator.cf.
framework/src/Illuminate/View/Compilers/ComponentTagCompiler.php
Line 109 in 3d687d9
Is this syntax Ok, and will be added to the documentation ?
Beta Was this translation helpful? Give feedback.
All reactions