Relative Content

Tag Archive for phplaravellaravel-livewire

Why is the dispatch livewire 3 didnt emit the data

I have a problem where the dispatch didn’t do anything. I’m using Livewire v3.5.2. So I have a form for updating the data in my database. The Livewire component to handle the form look like this

Correct email validations in PHP laravel Livewire

I want to validate emails correctly as when user type in form field, the correct email must end with .com here is my code showing what i have been trying and it does not working
(the problem with the codes is it submit the form even if the email is not in the valid format , not ending with the specified domain )

Livewire components or controllers

There are many questions like this, but none explain more than “use only Livewire components” or “use Livewire only for interactivity.” Also, I cant find live code bases of real world web apps to see what is a good practice.

Replacing controllers with Livewire components

There are many questions like this, but none explain more than “use only Livewire components” or “use Livewire only for interactivity.” Also, there are no live code bases of web apps to see what is a good practice.

Laravel Livewire autocomplete

I am new to livewire and i just want to build an autocomplete, but i dont know if my code is correct or not because when i type in my input, i dont have any errors in Network or in my Console here is my code

Livewire V3 testing “Component has no errors.” in testsuite

I’m working in a Laravel 11 project using Livewire V3. I have a component called MonitorCreate component and corresponding class. The class implements the form object. When I submit the form, I get validation errors, but my test doesn’t see any errors, what am I missing?