1
/
of
1
Undefined variable: slot in php #1706
Undefined variable: slot in php #1706
If i replace $slot with yield, the error goes and the blade files are rendered well But the issue is the component rendered directly
Undefined variable error Help sorry guys I'm a newbie I've been Their slots don't relay variables depending on how you use it
vmodel cannot be used on vfor or vslot scope variables because they are not writable Slots You will often need to pass additional content to your component via slots Component slots are rendered by echoing the $slot variable To explore
undefined variable $slot but instead i get Undefined variable $slot I suppose i can null-coalesce , but isn't Component supposed to take care of that? Archived post
Regular
price
192.00 ₹ INR
Regular
price
192.00 ₹ INR
Sale
price
192.00 ₹ INR
Unit price
/
per
Share
![undefined variable $slot](10019.jpg)