PeytonBirch's avatar

Integrate livewire into a project

I’m new into livewire, i saw some videos of it i decided to give a chance, but i have some doubts. First I’m going to replace the tables with laravel pagination that i have, with livewire table with live pagination.

How can i call the data that my controller send to the views? Can i call the laravel controller from the livewire component?

All the examples that i see online say that i have to write all the db calls within livewire component class.

0 likes
3 replies
tykus's avatar

How can i call the data that my controller send to the views? Can i call the laravel controller from the livewire component?

Use the Livewire Component in place of the Controller action - it organizes the data and renders the view rather than the Controller action.

Please or to participate in this conversation.