Hey there,
I've created a new laravel project, installed breeze and wanted to install this project for multi-theme support.
After installing and exporting the config, I've tried running make:theme and went through the creation dialog.
After completion, it creates the needed controllers and a folder within /themes but throws an exception in the console that it can't find an app.blade.php within the theme folder.
My theme folder after the command ended:
test-theme
- js
- components
- ExampleComponent.vue
- app.js
- bootstrap.js
- views
- vite.config.js
The exception in the console:
ErrorException
file_get_contents(/var/www/html/themes/test-theme/views/layouts/app.blade.php): Failed to open stream: No such file or directory
at vendor/qirolab/laravel-themer/src/Presets/Traits/HandleFiles.php:26
22▕ }
23▕
24▕ protected function replaceInFile(string $search, string $replace, string $path): int|bool
25▕ {
➜ 26▕ return file_put_contents($path, str_replace($search, $replace, file_get_contents($path)));
27▕ }
28▕
29▕ public function createFile(string $path, string $content = ''): int|bool
30▕ {
+17 vendor frames
18 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Hey there,
I've created a new laravel project, installed breeze and wanted to install this project for multi-theme support.
After installing and exporting the config, I've tried running make:theme and went through the creation dialog.
After completion, it creates the needed controllers and a folder within /themes but throws an exception in the console that it can't find an app.blade.php within the theme folder.
My theme folder after the command ended:
The exception in the console: