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 AppHttpLivewireUserAll.php AppViewComponentsUserLayout.php resourseviewslayoutsuser.blade.php resourseviewslivewireuserall.blade.php 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
Tag: laravel-livewire
Laravel 9 and Livewire Validation for Unique Unless Updating
The below validation works when creating a new record, but when updating a record, partner_code and seedgens_code are getting caught in the unique validation. How do I allow a record to be updated with the same values if not changed, but still validate for unique when the value does change? Answer or where $id is the ID that you want
Livewire views not found after deployment
After deployment to Forge, my Laravel Livewire site is throwing out a server error. I am using Digital Ocean as well. In the Forge site logs it says that my livewire view can’t be found. The app works perfectly on local. Any ideas what to do? I have attempted these commands Here is the site logs pt.1 and pt.2 I
Laravel translations
can someone tell me how can I search (with livewire) products which have a translatable title? Currently, I am using astrotomic/laravel-translatable package. Translations are working just fine and I can statically pull the right data but when I try to search it I have an issue because the package is expecting to have a title in a different table and
Laravel Livewire – Best way to use [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 months ago. Improve this question I have been interested in Laravel Livewire for a few days. But I wonder what is the best way to use
How to keep session after storing data in Laravel 8?
I’m new to Laravel. I have created custom Change Password in Laravel 8 using Livewire. But, after succeeded in updating the user password, my session is expired and redirected to login page. So, the question is how to keep the session alive and redirect to the current page? Here’s my code: ChangeUserPassword.php change-user-password.blade.php Any suggestion would really help. Thanks. Answer
Livewire invalid arrow-function arguments on action
I’m testing out Livewire with a Laravel shopping cart plugin. To add items to the cart you call a function, passing in id, name, quantity, price, and an optional array of metadata: The rendered HTML looks perfect, but when I click the button I get: It doesn’t seem to like the => in the array assignment. Does anyone know a
Laravel & Livewire: How to execute a javascript function when the component changes?
I’m using Laravel 8 and Livewire. I have an application that shows items objects from a table. When you click on an item, it displays the item details to the right. This works great, since the show() method in the component will do anything it does, binding variables, and such… Now, in the details section, I want to make a
Can I enter from admin to an authenticated user dashboard?
I am working in a project in laravel with livewire. I am working in the admin dashboard that has all user data in a simple table. In this table, I have been requested that when I click on user name, I have to be sent to the specified user dashboard that has been created with livewire. The problem is that
I’m using Laravel:Livewire star rating Components. I want to show total ratings in stars
The rating module is working well, number of ratings are also showing but I want to display total ratings in stars but I don’t know how to write in blade view. Livewire/ProductRating.php Answer Assuming that your Rating model has a property on it called rating, you could do the following to get the average rating for a product with the