mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 15:09:33 +08:00
fix: Livewire v4 layout file location (#19049)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user