Skip to content

Livewire/Volt Tools

Introduction

LaraDumps provides a very convenient way to debug Livewire Component's properties, events, queries and validation errors.

Every time the component is updated, you will be able to see all the information in your LaraDumps Desktop app.

Profile

Output

Properties

Output

Livewire Component

To enable LaraDumps to listen to a specific Livewire component, add a #[Ds] PHP attribute to the its class as demonstrated in the next example:

php
use LaraDumps\LaraDumps\Livewire\Attributes\Ds;

#[Ds]
class MyLivewireComponent extends \Livewire\Component 
{
    public function mount() 
    {
        // ..
    }
}

Volt function

To enable LaraDumps to listen to a specific Volt component, add a ds() function like in the example below.

php
\Livewire\Volt\title('todo');

booted(fn() => ds($this));  

state([
    'todo' => ''
]);

// ...

Created By Luan Freitas