2,696 questions
0
votes
2
answers
59
views
Handle livewire events in both PHP and JS
I have this component called beat-player, on the PHP code I receive a dispatched event from another component and it works:
<?php
namespace App\Livewire;
use Livewire\Component;
use Livewire\...
0
votes
1
answer
226
views
Laravel Broadcasting Events from Queue Job Not Triggering Filament Livewire Listener
I'm working on a Laravel/Filament application where I need to broadcast events from a queued job to update a Filament RelationManager's state.
Setup
I have a queued job that generates an analysis for ...
0
votes
0
answers
69
views
Can't access to my model User from Laravel Breeze user with Livewire 3 or Alpine
I am using Laravel 11 (With laravel Breeze) and Livewire 3.
I have a livewire component to edit users. This component shows a Edit/Show page with the possibility of modify your user. The problem here ...
0
votes
1
answer
137
views
Unable to trigger Livewire model value update inside Laravel component
I have a Laravel component for a date range picker. The problem is that when I select the date range, the Livewire model cannot seem to register it, and it does not update the model value. I don't ...
0
votes
1
answer
210
views
A livewire component called from a button stop working on a second click
I am trying to make a component to show a userProfile with "Show mode" and "Edit Mode". Initially you enter in "Show Mode" and see -Edit- and -Back- buttons. If you click ...
0
votes
1
answer
99
views
Laravel / livewire dispatched event not triggering
Yet another post for an event not working, but have read through the docs and cannot make sense as I'm right now just trying to replicate the basic example.
I have 3 components:
Parent: Beat-create
it ...
2
votes
0
answers
137
views
wire:snapshot with html instead json in livewire
I'm having problems with a livewire component. There is html in the wire:snapshot attribute it is supposed to contain just json:
<ul wire:snapshot="{"data":{"...
0
votes
0
answers
266
views
Filament login not working in staging/production
Filament login not working in staging/production.
I'm setting up my site on a Linux staging server, but filament is not working as expected. Whenever I try to login, not only the password is not ...
0
votes
2
answers
398
views
how to do form submit on pressing enter and add new line on shift+enter in livewire
my blade file
<form class="new-chat-form border-gradient" wire:submit.prevent="sendMessage" enctype="multipart/form-data">
<textarea wire:model="...
0
votes
0
answers
57
views
Native javascript events triggered by wire:model update
I'm trying to run a client javascript function when a form element gets updated by wire:model changes on the client side. I know Livewire doesn't trigger a change event, but I've read that input and ...
0
votes
2
answers
48
views
Value doesn't change even though select is set to the model
I use select2 to style selects. But in livewire I faced a problem that when I change the value it doesn't change even though the select is set to model
<div class="select2-custom-field select2-...
1
vote
0
answers
38
views
Livewire DataTable: `$this->data` is cleared during `dehydrating`, causing table rows to disappear
I’m working with a modular Livewire component structure that involves a base component (BaseTable.php) and child components. The BaseTable is designed to handle reusable table functionality and render ...
4
votes
4
answers
1k
views
JavaScript Not Working After Livewire Navigation but Works on Full Page Reload - Laravel
I am using Laravel Livewire for navigation within my application. My default layout includes the following scripts:
<div class="flex grow">
<x-layouts.sidebar />
&...
0
votes
0
answers
39
views
How do i correctly pass an array of data into a "a show/hide" dropdown in blade template?
I am trying to populate an FAQs section with a UI that hides and shows the answers depending on when the user clicks to view the answer, but for some reasons the answers still shows without clicking ...
0
votes
1
answer
392
views
Can't refresh a Livewire component after wire:click button
I can't seem to get my LikeCounter livewire component to be able to refresh after i clicked a button that triggers a wire:click event.
My LikeCounter Livewire component:
class LikeCounter extends ...
0
votes
1
answer
183
views
AlpineJs 3 and Charts.js (4.4.6) gives Uncaught RangeError: Maximum call stack size exceeded when calling Chart.update()
I'm tring to update my chart with new data. But whenever I call update functions I get error: Maximum call stack size exceeded.
<div x-data="chartComponent()" class="max-w-xl mx-...
1
vote
0
answers
80
views
Laravel 11: Livewire not updating calendar and modal properly
I am using Laravel 11 and created a livewire InvoiceDetail from detail blade which is accessible through /invooice/{id} route
It contains an individual Invoice id but shows list of all invoices for ...
-1
votes
1
answer
153
views
How to resolve "ambiguous column" error in Laravel Livewire PowerGrid filter with joined tables?
I'm using Laravel Livewire with PowerGrid v2.x and have a query that joins multiple tables to display transaction data. Both transactions and invoices tables contain a transaction_type column, which ...
0
votes
1
answer
64
views
Laravel Livewire: data is not updated
I have such a component. The payment button is not active until the user selects a payment option and method
return-ad.blade.php
@php use App\Models\UserLimit; @endphp
<div>
@if ($template ==...
0
votes
0
answers
203
views
Undefined variable $component with Livewire (possibly related to blade @component not being processed)
Always undefined variable in $component, however not always in the /vendor/filament/notifications/resources/views/notifications.blade.php view (although lately has been). I understand this seems to be ...
0
votes
1
answer
113
views
Client error: 405 Method Not Allowed Integrating remita with Laravel and livewire
Please i need help, i don't know what i am doing wrong.
Accessing the API works through postman but not working in my laravel application.
//...........
Client error: `POST https://remitademo.net/...
0
votes
1
answer
324
views
How to consume data from 3rd party API the Laravel 11 way
I'm working on project and it requires a location field with custom implementation of Google Maps autocomplete. I need it to only return [City, State] (eg. Cleveland, Ohio) or [Neighborhood, City, ...
-1
votes
1
answer
145
views
Filament FileUpload maxSize is ignored
i have livewire component where i have this filament form
class Categories extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;
public $customFields;
...
1
vote
0
answers
347
views
I got livewire/update 404 (Not Found) in JS console when wire:poll is triggered (and the render function is not called)
I got :
livewire.js?id=38dc8241:4284 POST http://localhost:8000/livewire/update 404 (Not Found)
Everytime the wire:poll is triggered.
(and the render function is not called, except for the first ...
2
votes
2
answers
594
views
Buttons not showing in Livewire Powergrid [Alpine Expression Error: 'variable' is not defined]
I installed livewire-powergridin my project. So far everything works well except the header and action buttons.
I am getting an undefined where the button is supposed to be rendered.
Also. In my ...
1
vote
0
answers
28
views
Livewire2.6 need to swap tampates based on server event
I'm a beginner in Livewire, need to display one of the templates (the first with a Resend button if $waitTime <=0 and the second if $waitTime >0) according to server event updateWaitTime . In ...
0
votes
2
answers
130
views
Laravel Livewire - Lookup a table and return data
I have set up a very simple project as I want to pass livewire an id and it to return some data from a table with that ID.
My basic page includes
@livewire('ShowData',['id' => 4])
I have a ...
0
votes
1
answer
191
views
Laravel Livewire 2 pagination breaks Alpine
I'd be happy to post some or all of my code, but for starters, here is the upshot. I have a Livewire view with Livewire components that are paginated. These items may also be filtered. However, any ...
1
vote
0
answers
100
views
How customize Repeater's item using Livewire component?
Livewire 3x.
I have a Livewire component OpportunityQuote that has a Repeater in its structure, like this:
class OpportunityQuote extends Component implements HasForms
{
use InteractsWithForms, ...
1
vote
1
answer
107
views
Run livewire click method based on whether checkbox is checked or not
I'm new to livewire.
And I have Livewire component like below
<label for="active">Active:</label>
<input type="checkbox" id="active" wire:model.live="...
0
votes
1
answer
170
views
Livewire wired checkbox has wrong checked state with nested values
When nested boolean property values (e.g. nested.value) of a Livewire component change, checkboxes do not change their checked state.
Here is a wirebox with the scenario: https://wirebox.app/b/x58lv
...
-1
votes
1
answer
120
views
Load livewire component on timeout
Needs to load livewire component on timeout
Here is my livewire call code:
<livewire:data-list data="{{$id}}"/>
But i want to load this component after some time like seconds...
Here ...
0
votes
1
answer
60
views
Explanation on how livewire updates components and re-renders content in views
I have a livewire component thet loads a dynamic component based on a $step variable. The idea is to load one of three components based on the value of the variable. The variable is updated when the ...
-2
votes
1
answer
133
views
Opening a modal in livewire - laravel
I am designing a login form. when the user clicks on login button a modal should popup.
I have used livewire emitsTo event.
<button wire:click="$emitTo('login','loginModalOpen')" class=&...
0
votes
1
answer
282
views
End-to-End Payload Encryption in Laravel Livewire
Livewire Version: 3.5.12
I’d like to share and discuss an approach for adding end-to-end payload encryption on top of HTTPS for a Laravel 11 application using Livewire v3. This setup adds an ...
1
vote
1
answer
1k
views
How to implementing Modal with Edit Record Resource Filament
How can I modify the EditRecord code in my EditPermohonan class so that when the "Save" button is clicked, a modal appears to confirm the changes before actually saving? I want the modal to ...
0
votes
2
answers
2k
views
How to manually refresh in Livewire
In the function "add" at some point it throws and event to the component "shopping-cart". In the "shopping-cart" component, i want to refresh the component manually when ...
0
votes
1
answer
264
views
How to pass data from layout to component in livewire v3
How can I pass data from layout to component in livewire?
I want to pass data from layout to $slot.
My layout is:
<!DOCTYPE html>
<html>
<head>
<!-- Scripts -->
@vite(['...
1
vote
1
answer
74
views
CKEditor Not Displaying in Modal with Livewire
I am working on a survey builder where I let the user add different questions based on the field they select. For the question field, I want to use CKEditor.
<div>
@if($isOpen)
<div class=...
2
votes
2
answers
720
views
Tenancy for Laravel and Filament FileUpload
I use Tenancy for Laravel (v3) and Filament (v3) to create a multi-tenancy application. I have a decent amount of applications working well using different domains for the various applications. ...
1
vote
2
answers
574
views
Laravel fail to correctly generate URLs for static resources (Livewire 3, and others)
I’m encountering an issue with Laravel and Livewire when deploying my application on an Apache server. The problem arises when the application is hosted in a subfolder (e.g., domain.com/folder_app). ...
0
votes
1
answer
77
views
wire:model value not accessible during x-init for x-modelable properties
I have the following component
<div>
<div
x-data="{ value: 0 }"
x-modelable="value"
wire:model.live="counter"
x-init="...
0
votes
0
answers
113
views
How to prevent BIN attack on a Laravel v11 Livewire-based checkout system?
I am currently facing a BIN attack on the checkout page of my web application, which is built using Laravel and Livewire. Fraudulent users (or bots) are attempting to perform card testing by using a ...
2
votes
1
answer
1k
views
Laravel Filament V3 causes Action components on ViewResource to be disabled on polling
As the title suggests I have an application that receives a huge amount of data that gets updated aproximately 3-5 times every second for each record in the database. It is required that my ...
0
votes
1
answer
141
views
Deleting Item in Livewire Modal shows 404 not found pop up
I am using livewire modal from this repo: https://github.com/wire-elements/modal
So, I create an edit modal where it can also delete the item. Here is the modal look like
There are delete button. ...
0
votes
1
answer
194
views
Setting Livewire V3 property using Alpine $wire | x-on:click="$wire.title = 'title'"
I have been using Livewire v3 for a while and often use...
<button x-on:click="$wire.set('title', 'A New Title')">
... to set Livewire properties directly from Alpine. This all works ...
0
votes
1
answer
133
views
Component not auto re-rendering after performing any action
commerce app in laravel livewire3, cart component data not updating after perform any action like updateQty, removeItem etc.
I want to auto update cart itmes values after perform any action.
Cart.php
...
0
votes
2
answers
278
views
The server returned a "405 Method Not Allowed" after succesful payment
this is the URL defined to return after successful payment:
"returnURL" => 'https://wearlarimo.com/success/' . $this->order->id
and this is the route to get the Success page of ...
1
vote
2
answers
690
views
how to make Content Security Policy allow the livewire.js
This my error
I'm still a beginner in creating Laravel Livewire applications, how to make CSP allow livewire.js
When I don't use Content Security Policy Livewire runs fine, after I use Content ...
-1
votes
2
answers
214
views
Livewire radio buttons value gets overwritten? (with testable demo)
When i have a mini multistep form the radio button value of step 2 is overwriting the value of step 1. See code below.
The component
<?php
// app/Livewire/Counter.php
namespace App\Livewire;
use ...