Skip to content

make:theme can't find app.blade.php after creation #37

@LauraWebdev

Description

@LauraWebdev

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions