Relative Content

Tag Archive for laravellaravel-livewire

Livewire wire:init doesn’t create multiple update requests

Livewire wire:init doesn’t async load individual elements for some reason. My whole Livewire component is my page, and some components of my dashboard like statistics can be loaded after the page has loaded, except when calling different functions using wire:init the functions are coupled in one update request and I’d like two. I tried added wire:key but this does nothing:

How can i use an $photo->temporaryUrl() with an drag and drop function?

Hello everyone I have an drag and drop function for the images and i wanna try and use $photo->temporaryUrl() so i can show the image on screen before really saving. It only saves the $photo when the save button is clicked. For now I only want the photo to be showen on screen, but because i have an drag and drop and not an ordinary <input> field, i could’t get to find out on how I could do this.