Category : laravel-livewire

I’ve problem on refreshing model collection after detach on Laravel livewire. I want to remove detached item from view without refresh full page, but it seem not work. it need to refresh full page to re render the view. I have tried to $model->refresh() after detach(), and its work but $model->refresh() duplicate already loaded relationship ..

Read more

I’ve problem on refreshing model collection after detach on Laravel livewire. I want to remove detached item from view without refresh full page, but it seem not work. it need to refresh full page to re render the view. I have tried to $model->refresh() after detach(), and its work but $model->refresh() duplicate already loaded relationship ..

Read more

I am trying to implement Logout functionality on my Laravel app with TALL stack, I am firing logout event from my blade via Livewire wire:click but it doesn’t seem to fire any method from its own component. Loading my component in app.blade.php layout: <li class="flex"> @livewire(‘logout’) </li> logout.blade.php <a wire:click="logout" class="some-classes" > <svg class="w-4 h-4 ..

Read more

Wokring on a simple project using Laravel 8 and Livewire as well. I have created a function that gives an image to every user that is created. CreateUser.php public function saveClient(){ if(!File::exists(public_path(‘images’))) { File::makeDirectory(public_path(‘images’), $mode = 0777, true, true); } QrCode::size(100) ->format(‘svg’) ->backgroundColor(255,255,255) // ->email($email_address) ->generate($this->personalId, ‘images/’.$this->personalId.’.svg’); $img_url = ‘images/’.$this->personalId.’.svg’; Session::put(‘personalId’, $this->personalId); Session::put(‘qrImage’, $img_url); $this->validate(); ..

Read more