Sync state with URL:
Define URL Parameters
use Livewire\Attributes\Url;
class SearchPosts extends Component
{
#[Url]
public $search = '';
#[Url]
public $category = 'all';
}Keep History
#[Url(history: true)]
public $page = 1;Custom Parameter Name
#[Url(as: 'q')]
public $search;Users can bookmark and share filtered states!