Laravel 8 Tutorial - Livewire Route

preview_player
Показать описание
In this video I will talk about Livewire Route

TOPIC DISCUSSED:

Livewire Route
Create Livewire Route
Required Livewire Parameter
Optional Livewire Parameter
Mount Hook

Your Queries -

1.How to create livewire route in laravel 8?
2.How to pass parameter in livewire route in laravel 8?
3.How to pass optional parameter in livewire route in laravel 8?
4.How to add mount hook method in livewire class?
3.What are the steps for creating livewire route in laravel 8?

FOLLOW SURFSIDE MEDIA:

#laravel #laravel8 #laravel8x
Рекомендации по теме
Комментарии
Автор

I think from version 2 on, you do not need to set the property inside the mount. From the docs: in V2, component parameters are now automatically assigned to public properties by matching their name. Now, mount() methods are only used for things they MUST be used for, not for simply forwarding parameters to properties

leonvanrijswijk
Автор

Maybe you have a video of it, but I was hoping this would go into putting routes as links. I've tried all sorts of stuff, and so far the only thing I've been able to get to work is hardcoding the routes which is not ideal.

Sane
Автор

Hey, I fail to understand the purpose and in which circomstance I would use this specific tutorial. It is nothing more than a bonified javascript component that you don't use. At least so far.
You can achieve this with regular route to controller.
Plus I would not use this for front-end page because of SEO. Content would refresh without any URL changes, and that is not good for SEO.
Maybe add in which circumstances one would use it!

degagnemarc