2,691 questions
4
votes
1
answer
66
views
How to fix Livewire ComponentNotFoundException on wire:click events?
I have a Livewire component where $this->getName() works correctly and displays user name, but wire:click="logout" triggers a ComponentNotFoundException. The error message shows: Unable ...
1
vote
0
answers
89
views
Prefix everything in Laravel 12
I have a small problem with Laravel 12 where I cannot find a simple solution. The problem is simple: I need to prefix EVERYTHING.
Reason for this: I have several Laravel apps which are all running ...
3
votes
1
answer
156
views
Authentication error when trying to install @livewire/vite-plugin
I've been trying to install @livewire/vite-plugin since last week, but I'm getting an authentication error. I researched it and saw that npmjs is forcing the creation of tokens for validation. I ...
0
votes
1
answer
63
views
AlpineJS stale state after server updates
I am trying in Laravel-livewire by leveraging AlpineJS, to create some forms. The code below is blade.php. The idea is:
Server provides a $fieldRegex.
createComponent runs creating the alpineJS ...
0
votes
1
answer
51
views
Fail on save record on a modal in button action at header of infolist - filament laravel
Fail on save record on a modal in button action at header of infolist - filament laravel
I have a page view AgendamentoView. That display infolist of an Agendamento (schedule). Each schedule have one ...
0
votes
0
answers
101
views
Uncaught ReferenceError: Alpine is not defined in Laravel Livewire app
Context:
I am using Laravel 8 with Livewire.
Alpine.js is installed via npm in my package.json:
"devDependencies": {
"alpinejs": "^3.15.2"
}
I am not using a ...
0
votes
0
answers
28
views
How to render a specific livewire component?
I have multiple livewire component wrapped insisde the if condition. I am able to load the initial page however the page just crashes whenever I go to the next step.
<div class="flex flex-col ...
0
votes
0
answers
52
views
How to Keep Filament Tenant Registration Loader Visible Until Redirect
I am using Filament 4.x with Livewire 3.x to build a tenant registration page. I have a custom loader that should display when the user clicks the register button.
The registration button is rendered ...
0
votes
0
answers
35
views
Filament 4 form with nested repeaters is very slow to load and render
Select::make('category_id')
->options(fn () => static::getChecklistIncidentCategoryOptions(true))
->columnSpanFull()
...
3
votes
1
answer
231
views
Is there a good way to gracefully handle bad method calls in Livewire?
I'm making most of my components extend from an abstract class where I register some exception handling using the exception lifecycle hook:
use App\Livewire\BaseComponent;
class MyComponent extends ...
1
vote
1
answer
68
views
Sweetalert2 is not being shown
I'm using Laravel 12 and Livewire 3, and now I'm trying to use sweetalert2 in component file.
Here is what I've already done:
install sweetalert2 :
npm install sweetalert2
in resources\js\app.js :
...
2
votes
1
answer
116
views
Custom File upload Component in Livewire Laravel
I am trying to create a reusable Livewire input-file component, Such that :
Easy embed in any (parent) and pass the model name (ex = "file1")
How to store() the file is in control of (...
-1
votes
1
answer
67
views
The blade not calling a function in the component
I hava a modal within a blade view(criteria.blade.php and i want this modal when triggered and filled to call the function with a component(Criteria.php) which sends data to the database but the ...
0
votes
0
answers
33
views
How to properly coordinate consecutive Livewire 3 events between sibling components to reflect loading state in Alpine.js?
I have two sibling Livewire components: a country select and a city select. When the user selects a country, I want to:
Notify the city select to show a loading spinner (via loading-cities event)
Load ...
0
votes
0
answers
33
views
Filament dynamic RichEditor field returns 'undefined' when creating a new record
I’m building a dynamic form in FilamentPHP where ContentType stores field definitions in JSON. I created a trait to map each field into a Filament component like this:
trait BuildsDynamicFields
{
...