Skip to content

Commit 20025ff

Browse files
authored
fix: Livewire v4 layout file location (#19049)
1 parent c1ee75c commit 20025ff

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/01-introduction/02-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Compile your new CSS and JavaScript assets using `npm run dev`.
230230

231231
### Configuring your layout
232232

233-
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:
233+
If you don't have a Blade layout file yet, create it at `resources/views/layouts/app.blade.php` by running the following command:
234234

235235
```bash
236236
php artisan livewire:layout

packages/support/src/Commands/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ protected function installScaffolding(): void
118118
default: true,
119119
))
120120
) {
121-
$layout = $filesystem->get(resource_path('views/components/layouts/app.blade.php'));
121+
$layout = $filesystem->get(resource_path('views/layouts/app.blade.php'));
122122
$layout = (string) str($layout)
123123
->replace('{{ $slot }}', '{{ $slot }}' . PHP_EOL . PHP_EOL . ' @livewire(\'notifications\')');
124-
$filesystem->put(resource_path('views/components/layouts/app.blade.php'), $layout);
124+
$filesystem->put(resource_path('views/layouts/app.blade.php'), $layout);
125125

126126
$hasNotifications = true;
127127
}

packages/support/stubs/scaffolding/resources/views/components/layouts/app.blade.php renamed to packages/support/stubs/scaffolding/resources/views/layouts/app.blade.php

File renamed without changes.

0 commit comments

Comments
 (0)