Livewire Attributes for Properties
January 16, 2026
•
1 min read
•
16 views
Table of Contents
Livewire PHP attributes:
URL Binding
use Livewire\Attributes\Url;
#[Url]
public $search = '';
Computed Property
use Livewire\Attributes\Computed;
#[Computed]
public function posts()
{
return Post::all();
}
Validation
use Livewire\Attributes\Validate;
#[Validate('required|email')]
public $email;
Locked Property
use Livewire\Attributes\Locked;
#[Locked]
public $userId;
On Event
use Livewire\Attributes\On;
#[On('post-created')]
public function handlePostCreated() {}
Related Posts
Laravel Sanctum API Authentication Complete Guide
Build secure API authentication with Laravel Sanctum for SPAs and mobile apps.
Laravel Rate Limiting: Protect Your Application
Implement rate limiting to protect your Laravel application from abuse.
Laravel Blade Components: Build Reusable UI
Create powerful reusable components with Laravel Blade.
Comments (0)
No comments yet. Be the first to comment!