30 questions
0
votes
1
answer
60
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 ...
-1
votes
1
answer
163
views
Binding Livewire nested data insertion using Alpine js
In screenshot below i have a set of data insertion which contains each parent might have o to 6 children :
when i try to get data in my livewire blade (the part facing issue) like below:
<div ...
1
vote
1
answer
130
views
Undefined array key "title" in laravel 11, llivewire 3
I want to read data from my database, but I keep receiving the following error;
Undefined array key "title"
I am using PHP 8.3.13 and Laravel 11.42.1 with Livewire 3
my table
app\Livewire\...
2
votes
1
answer
166
views
Laravel Livewire Pagination is not responsive
Hi I'm trying to implement the pagination with laravel livewire pagination with multiple options, for example default paginationw would be with 20 items per page and When I select the 50 it should ...
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
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
1
answer
1k
views
caught Snapshot missing on Livewire component with id:
Whey i try to filter via buttons i get this error
caught Snapshot missing on Livewire component with id:
This is my code
<div>
<div class="flex flex-col w-full gap-6 mx-auto lg:flex-...
0
votes
1
answer
574
views
In Livewire 3, after updating a property in the component class, the input chechbox in the Blade view does not change
I have in the order form a input text field that is binding to the accountForm property. I also have a input checkbox, bound to isChecked, if it is marked, the user account is also updated when the ...
0
votes
1
answer
38
views
Search functionality is not working in Livewire Laravel
I don't understand why is it not working i neither see any errors nor any progress. Somebody please help what i am missing in my code. I already put @livewireStyles in head and @livewireScripts in ...
0
votes
1
answer
272
views
Livewire wire:model not working with arrays, value is okay but the select is not auto selected or binded
public bool $triggerModal = false;
public $cols = [];
public $selectedColumn = null;
#[On('triggerModal')]
public function triggerModal(int $importFileId)
{
$this->...
1
vote
0
answers
153
views
Is it a good practice when i make a livewire component from the <head> section of a webpage?
When i make a livewire component from the head section of a webpage, there are some livewire related attributes added to the tag.
ex:
<head wire:snapshot="{"data":[],&...
0
votes
0
answers
468
views
Refreshing Component using Livewire Poll not working
Please i am developing a chat application and i'm using livewire component for the conversation part with polling to refresh the component so as to keep fetching the updated messages but this is not ...
0
votes
1
answer
131
views
Input values are not submitted on a second submission on my Livewire form
On my Livewire form I have a few text inputs which uses wire:model.defer
<input type="text" wire:model.defer="otp1" >
<input type="text" wire:model.defer="...
0
votes
1
answer
273
views
Laravel Livewire gives blank iframe when attempt to update record
I am using bootstrap models to add and update data. When there is no change in data while updating, livewire works fine. But it gives a blank black iframe screen when I try to update data.
Here is my ...
1
vote
0
answers
134
views
How to open additional modal from modal laravel Livewire?
How to open modal from modal and close parent modal? Or How to close current modal and open new one.
My scenario is: user click on generate some token, and I like to show him a new token in new modal ...
0
votes
4
answers
11k
views
Livewire component is not updated with the wire:model value
I have a simple component :
class SearchTypeClient extends Component
{
public $search;
public function render()
{
Log::info('search = ' . $this->search );
$...
1
vote
2
answers
2k
views
using livewire 3 and laravel 10.10 [simple input data binding is not working]
I am working in:
Livewire 3, Laravel version is 10.10, PHP 8.2.4
I am trying to bind simple data with simple code but its not working, I am not sure why? Can you please help me? Livewire actions ...
1
vote
1
answer
4k
views
Laravel Livewire unable to set component data on computed property
Within a Laravel Livewire component, I have a computed property (rather than a public property) for caching/db performance reasons.
Within a blade template, that computed property is bind-ed (bound) ...
0
votes
1
answer
47
views
laravel unable to update or delete
livewire component
<?php
namespace App\Http\Livewire;
use App\Models\Location;
use Livewire\Component;
class ManageLocation extends Component
{
public $locations;
public $unitNo;
...
0
votes
2
answers
768
views
Livewire component renders element attribute in wrong order and breaks the wire:click event
I'm working on a livewire component that acts as a file browser.
Initially a list of files and folders is passed to the components blade, if the item is a directory an anchor is returned which changes ...
0
votes
0
answers
2k
views
Powergrid table row action button unclickable after modal closed event
What I have in my laravel project
Livewire powergrid for displaying tables.
Livewire-ui-modal (use to have the confirm dialog from the button of the table)
What I have succeeded
I have displayed my ...
1
vote
0
answers
2k
views
Laravel Livewire wire:model directly to an eloquent collection or use value attribute of input?
I'm currently struggling with setting up a table made up of editable rows that represent records in my database. Each row has a number of input fields that I want to wire:model so they enter a value, ...
0
votes
3
answers
2k
views
Laravel Livewire not mounting value from datepicker
I am using Flowbite Datepick plugin with my Livewire and Livewire Component is not mounting value of the datepicker and is NULL upon selecting date
<div class="relative max-w-...
0
votes
1
answer
504
views
My controller can’t read {id} with dd(function) in laravel livewire
I am new in laravel livewire and i think my controller isn’t able to call (id) in my function
but what drives me crazy is the last part function render() in the same controller works fine
livewire ...
1
vote
0
answers
235
views
livewire datatable columns sort not restoring after page refresh
I am working on laravel livewire datatables. when change sorting of table, after refresh the page sorting not removed. I need to completely refresh page & show original datatable results when ...
1
vote
0
answers
154
views
where to find logic for Livewire table with parameters
I want to change query of the livewire table which displaying profiles on my admin panel, but don't know where i can find back-end Mysql query for modification. here is code for my live wire table .
&...
0
votes
1
answer
545
views
Livewire model binding while clicking other element
I have a very simple problem. Whenever I click on div I want the data binding to be applied to the file input.
<div>click me</div>
<input type="file" wire:model="photo&...
0
votes
3
answers
585
views
Meilisearch Laravel Livewire component - unchecked checkboxes disappearing when using wire:model
I'm building a full page Livewire component that filters Meilisearch results.
When I check one of the filters the remaning checkboxes disappear, and I am struggling to understand why. I followed a ...
0
votes
2
answers
3k
views
Using Livewire with multi Select2 multiple input
in one page I have to list the name of the all rooms in a loop and assign employees to the rooms. Some employees uses more than one room. I decided use Livewire for the first time. So I don't have ...
0
votes
0
answers
143
views
The problem is that when selecting from select it has ware:model, the slider crashes, and when you click on search, it shows 404
When I use livewire The problem is that when selecting from select it has ware:model, the slider crashes, and when you click on search, it shows 404
As shown in the pictures
I tried many times but I ...