Skip to content
Advertisement

Laravel Livewire is including tag twice

I’ve been following the Livewire docs and screencasts to build my new app, but I could be doing something wrong because the <head> tag is been included twice.

Here is my code:

routesweb.php

JavaScript

AppHttpLivewireUserAll.php

JavaScript

AppViewComponentsUserLayout.php

JavaScript

resourseviewslayoutsuser.blade.php

JavaScript

resourseviewslivewireuserall.blade.php

JavaScript

If I remove the <x-user-layout> tag in the blade, the problem seems to be fixed, but then livewire doesn’t work.

I’ve tried many solutions, but nothig works. What am I doing wrong here?

Thanks a lot in advance.

Advertisement

Answer

try this in

AppHttpLivewireUserAll.php add layout

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement