fix: Livewire v4 layout file location (#19049)

This commit is contained in:
Dan Harrin
2026-01-22 22:56:24 +00:00
committed by GitHub
parent c1ee75ccfb
commit 20025ff91d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ Compile your new CSS and JavaScript assets using `npm run dev`.
### Configuring your layout
If you don't have a Blade layout file yet, create it at `resources/views/components/layouts/app.blade.php` by running the following command:
If you don't have a Blade layout file yet, create it at `resources/views/layouts/app.blade.php` by running the following command:
```bash
php artisan livewire:layout
@@ -118,10 +118,10 @@ class InstallCommand extends Command
default: true,
))
) {
$layout = $filesystem->get(resource_path('views/components/layouts/app.blade.php'));
$layout = $filesystem->get(resource_path('views/layouts/app.blade.php'));
$layout = (string) str($layout)
->replace('{{ $slot }}', '{{ $slot }}' . PHP_EOL . PHP_EOL . ' @livewire(\'notifications\')');
$filesystem->put(resource_path('views/components/layouts/app.blade.php'), $layout);
$filesystem->put(resource_path('views/layouts/app.blade.php'), $layout);
$hasNotifications = true;
}