Mahmoud Al-HabashOpen to new projects
  • WorkWork
  • ServicesServices
  • LabLab
  • WritingWriting
  • ContactContact
Amman--:--عربي
Writing/Livewire

Configuration Changes in Livewire v4

Update your config/livewire.php for v4 compatibility.

1 February 20261 min readLivewireاقرأ بالعربية

On this page

  1. Renamed Keys
  2. New Options

Livewire v4 introduces several configuration changes.

Renamed Keys

php
// Before: 'layout' => 'components.layouts.app'
// After: 'component_layout' => 'layouts::app'

// Before: 'lazy_placeholder' => 'livewire.placeholder'
// After: 'component_placeholder' => 'livewire.placeholder'

New Options

php
'component_locations' => [
    resource_path('views/components'),
],

'component_namespaces' => [
    'layouts' => resource_path('views/layouts'),
    'pages' => resource_path('views/pages'),
],

'make_command' => [
    'type' => 'sfc',
    'emoji' => true,
],

'csp_safe' => false,
All articles

Keep reading

  • Authorization in Livewire v4 Components1 February 20261 min read
  • Blaze Pre-Compiler: Massive Performance Gains in Livewire v41 February 20261 min read
  • Building a Bookmark Feature with Livewire v41 February 20261 min read