Category "laravel-livewire"

How to stop livewire from updating input when using alpine.js

So i'm using livewire and alpine.js, I am trying to stop the client from contacting the server so much when filling in input boxes (i already know you can use m

alpine js, x-model binds to wrong value when switching tabs

running into an issue with alpine js. First of all I have a master component that allows the user to switch between two tabs @props(['pages', 'blogs']) <div

laravel livewire insert selected data from datatable to an application form

I have a datatable with a list of job/career vacancies where in the selected item_number and position_title should be automatically filled in the application fo

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

wire:loading add class to the body tag?

when loading something slow, I show a splash screen using <div wire:loading class="my-splash-screen-spinner"> Loading..... </div> the problem is

Have error Livewire encountered corrupt data

I'm using extends in Laravel Livewire. It can display, but when I want to add or change data, I got an error. Livewire encountered corrupt data when trying to

How to handle if <![CDATA[ ]]> is null/empty?

I want to convert xml data into JOSN format but there is an issue if I try to do that. simplexml_load_string() returns empty data once after it perhaps get <

I got Livewire\Redirector::$headers error with custom Exception raised

When In Laravel 8 / livewire 2.5 I make checks and logout from livewire booted method : if($method_name == 'edit' and $loggedUser->can(PERMISSION_EDIT_IT

Laravel Livewire set is Removing Map Marker

I am using Laravel 8 with Livewire and am displaying a Mapbox map in my page. When I click on the map, I am getting the coordinates of the click and placing a m

nouislider with livewire how to get values

How can i get the values from nouislider in livewire? So i can compare the min and max price. I don't see how i can get the values. It has 2 handles a min and m

Undefined Variable error when using @foreach

I'm currently working on a project in laravel8 and i've been stuck here for so long and i can't see what the problem is ! i'm trying to make the tours page dyna

Bind JSON attribute with livewire

I have a Test model, with the JSON attribute inputs, which is a flat array of strings (e.g. ['foo', 'bar', 'baz']). I'm trying to bind this field up to Livewire

Transition a div height when the content is updated by livewire

So we got a div with a Livewire component to choose languages : <div> @livewire('multiple-languages', [ ... ]) </div> When the user selects a l

Object at controller suddenly become array at view

anyone can explain why this happen? i cant access my data at view because it suddenly change to array. I try to check it using var_dumb at controller public fun

Laravel Livewire wire:click not firing

I am working on an e-commerce platform based on Laravel and Livewire using the bumbummen99 shopping cart. My problem is that I can only add items to the cart, b

Bind Livewire component to parent array

I have the following structure: A parent component: class SiteEditComponent extends Component { protected $listeners = ['upClicked', 'downClicked', 'childU

InvalidArgumentException View [layouts.app] not found. Larave-8 LliveWire-2

When I change app.blade.php to base.blade.php I am having the following error. InvalidArgumentException View [layouts.app] not found. (View: D:\Code\my-app\ven

When the file selected for upload, livewire component is automatically rendering

Is there any possibility to stop Livewire rendering on each click event? Actualy The issue is, if any event triggered from HTML or Javascript, then the render f

Laravel livewire sorting by foreign key

I'm trying to sort a post table by a foreign key, and can't figure out how to do it. Hopefully someone can lend me a hand. I can sort by the fields already pres