Тёмный

Which Livewire method should I use? 

Laravel
Подписаться 51 тыс.
Просмотров 7 тыс.
50% 1

There's multiple different ways to pass data from your server into your Livewire components template or view layer. But how are all of these methods different? How are they similar? Which one do I actually use to get the data in the way I want it?
Well. Let's take a look. 👀

Links:
Livewire Lifecycle Hooks: livewire.larav...
Livewire Computed Properties: livewire.larav...

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@RobertCordes
@RobertCordes 3 месяца назад
Please give us more videos with Josh on this channel! Love his content and style :)
@LaravelPHP
@LaravelPHP 3 месяца назад
Thanks for watching Robert! I'm glad I get to be a part of the team. :) -Josh
@vic_casanas
@vic_casanas 3 месяца назад
Please 🙏 🙏🙏, I completely agree, his style is 👌
@sajsaj
@sajsaj 3 месяца назад
Create some video about protected listeners, dispatch for new livewire developers.
@LaravelPHP
@LaravelPHP 3 месяца назад
Good notes! We will add it to the list. :) -Josh
@kostaandonovski4633
@kostaandonovski4633 3 месяца назад
Great job man. Been using livewire for a few years now took me a bit to also figure out exactly when to use which, especially the render method because it re-computes at every single refresh making it not the best place to fetch data from. I always try to not place anything in the render method if possible unless its absolutely required for this reason.
@LaravelPHP
@LaravelPHP 3 месяца назад
It's definitely helpful to know all of these things so that way you can decide when you need data to be "fresh". So it's nice to be conscious of when you're making a ton of database queries like you said. :) If I'm having a CRUD setup where I want to refetch a list of items (much like a TODO list), after something has been added, having it in the Render is fantastic for that. But otherwise, it's probably not best, like you said. ☺️ -Josh
@shubhamsahuSD
@shubhamsahuSD 3 месяца назад
if i do something like this with alipine js, will it get updated value of entangled livewire variable Livewire: public $pageState = null; public function mount($state = null){ $this->pageState = $state; } Blade: now will currentPageState have updated value or null ?
@konskript123
@konskript123 2 месяца назад
Is there a way for computed and pagination property to have something like a loadMore?
@LaravelPHP
@LaravelPHP 2 месяца назад
It's definitely possible! You just have to use some Alpine to interact with the view window. I would check out a blog post like this to get some tips. :) apexcode.dev/blog/infinite-scroll-with-laravel-and-livewire -Josh
@konskript123
@konskript123 2 месяца назад
​@@LaravelPHP Nice. Just like what I wanted. How about some events that's being trigger inside a PostObserver created Example. Window 1 created a new post Window 2 has a Post List that's being paginated. I can't wrapped up my head how to add the event data that I received and add it in the Post List. Do you have any reference that I could take a look at? Thank you so much.
@elmalleable
@elmalleable 3 месяца назад
Livewire not having slots 😢
@diogocarlos9898
@diogocarlos9898 3 месяца назад
Thanks for this great video. But I have a question: if I use livewire volt using functions api, and I want to populate a table, what does it look like?
@LaravelPHP
@LaravelPHP 3 месяца назад
I don't know if I fully understand what you're saying, but that should be the with() function in Livewire Volt functional API. -Josh
@xanthosoma1989
@xanthosoma1989 3 месяца назад
Thank you for this great video. I use Livewire in all my projects and it's amazing how I keep learning something new everyday.
@LaravelPHP
@LaravelPHP 3 месяца назад
It's really such a wonderful tool! -Josh
@neverything
@neverything 3 месяца назад
Great video Josh, took me a while to figure out computed properties. Thank you for the refresher :D
@LaravelPHP
@LaravelPHP 3 месяца назад
So glad that it was helpful! I appreciate the support. :) -Josh
@hafiznugraha3063
@hafiznugraha3063 3 месяца назад
What is the name of the extensions for tailwind classes that you use?
@LaravelPHP
@LaravelPHP 3 месяца назад
Thanks for watching! That is the Tailwind Fold extension for VSCode. It's something new I found. :) -Josh
@bugszone6098
@bugszone6098 2 месяца назад
life saving video. Thank you josh
@LaravelPHP
@LaravelPHP 2 месяца назад
Thank you for watching. I'm glad it helped! :) -Josh
@fkarakas259
@fkarakas259 3 месяца назад
Hello, what is the name of the font and theme you use? Thank you
@LaravelPHP
@LaravelPHP 3 месяца назад
This is the Dank Mono font with Catppuccin Frappe theme. :) -Josh
@fkarakas259
@fkarakas259 3 месяца назад
​@@LaravelPHPthank you :)
@berthojoris
@berthojoris 3 месяца назад
Thanks Josh ^_^
@LaravelPHP
@LaravelPHP 3 месяца назад
Thank YOU for watching! -Josh
@kantediakaridia
@kantediakaridia 3 месяца назад
thanks
@LaravelPHP
@LaravelPHP 3 месяца назад
Thank you for watching! :) -Josh
@brianmweu6460
@brianmweu6460 3 месяца назад
Awesome.
@LaravelPHP
@LaravelPHP 3 месяца назад
Thank you! :) -Josh
Далее
Laravel + Livewire todo app (and so much more)
16:41
Просмотров 45 тыс.
Как открыть багажник?
00:36
Просмотров 15 тыс.
The Modern Index.php File
16:13
Просмотров 18 тыс.
BEWARE these Laravel attributes | Real World Laravel
19:10
Build Your Own Custom Auth System with Fortify
20:14
HTMX Sucks
25:16
Просмотров 124 тыс.
Write Laravel, not PHP (feat. Aaron Francis) | 029
58:45