Skip to main content

Polling: Auto-Refresh Every X Seconds

Premium
2 min read

And the last mini-project will be to automatically refresh the component using polling Livewire feature. In this example, we will show random dog pictures from the API, and after a couple of seconds, it will get changed.

autorefresh


So first, we need a Livewire component.

php artisan make:livewire Autorefresh

We must get the image URL from the API in the...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

No comments yet…