
110: Caleb Porzio - Embracing the Backend with Livewire
Full Stack Radio
00:00
How to Create a Live Wire Directive in PHP
In your blade file, you have your button tag and instead of that, you would have a Live Wire directive. So at Live Wire and then you pass into it an object like a, or a class, which is your Live Wire component class. And in view, you'd have a little piece of data in your data object that would say, like drop down is visible. That gets rendered by life. This is like a partial that you're returning essentially. Exactly.
Play episode from 32:13
Transcript


