Undefined variable: data in view Laravel
By default, Livewire will render the ShowPosts component into the {{ $slot }} If you visit post123 , the $id variable passed into the mount method will contain
Blade Slot - Undefined variable $slot undefined variable $slot By default, Livewire will render the ShowPosts component into the {{ $slot }} If you visit post123 , the $id variable passed into the mount method will contain undefined variable $slot The {{ $slot }} variable will contain the content we wish to inject into the component Any content not within a @slot directive will be passed to the
laravel $slot If i replace $slot with yield, the error goes and the blade files are rendered well But the issue is the component rendered directly
Regular
price
156.00 ₹ INR
Regular
price
Sale
price
156.00 ₹ INR
Unit price
/
per