Livewire

Component Namespaces in Livewire v4

February 01, 2026 1 min read 33 views

Livewire v4 introduces component namespaces for better organization.

Configuration

// config/livewire.php
'component_namespaces' => [
    'layouts' => resource_path('views/layouts'),
    'pages' => resource_path('views/pages'),
    'admin' => resource_path('views/admin'),
],

Usage








Route::livewire('/admin', 'admin::dashboard');
Share this post:

Related Posts

Comments (0)

Please log in to leave a comment. Log in

No comments yet. Be the first to comment!