Questions tagged [laravel-livewire-wiremodel]

21 questions
1
vote
0 answers

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, and then the database is updated and the change…
hyphen
  • 2,368
  • 5
  • 28
  • 59
1
vote
0 answers

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 refreshing page.
1
vote
0 answers

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
0 answers

Laravel livewire - Data not save in the database with pivot

I'm new to livewire and currently I created a simple crud that can save the student data. My database schema are student table, families table and family_student table. Student TAble Schema::create('students', function (Blueprint $table) { …
0
votes
2 answers

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 functions on click working, but data binding not…
0
votes
1 answer

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) to a UI element (text area). However when I update…
0
votes
1 answer
0
votes
2 answers

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 the current path to the items name which…
0
votes
0 answers

Getting zero 0 in the input model of livewire

hello evey one, on laravel in use livewire, and i have a problème, (please help me) I have a problème with livewire, and i don't understand why is'nt work When i try to type something in the input model it's somethime return 0 in the box thanks for…
0
votes
0 answers

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 table as accordingly to my requirement using…
0
votes
2 answers

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
0
votes
0 answers

Laravel Livewire : select drop list not save to database

i wrote this code to execute the "add to cart" with selecting product variations function. the function does the job and saves the record to the cart table when i use radio input or checkbox input to select the variations, but fails to save if using…
0
votes
1 answer

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 controller:
0
votes
0 answers

Livewire datatables columns sorting not working

I am new to Livewire, I am implementing data table using livewire. Requirement: I need to sort data by updated_at column in descending order. After that if user click on status , then status should be sort by Ascending then also sort by…
0
votes
1 answer

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.
click me