saleem-hadad / larecipe

✏️ Write and ship beautiful documentation with your Laravel applications using MarkDown

Home Page:https://larecipe.saleem.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Package Discovery Problem with Custom Theme on Production System

vorsprungRene opened this issue · comments

Hi,
I'm facing a strange problem working with LaRecipe custom theme. When deploying to my production system (centos 8) with composer v 2.0.8, my laravel package discovery always fails with a class not found exeception:


  at /var/www/html/intralean/larecipe-components/StandartLight/src/ThemeServiceProvider.php:17
    13|      * @return void
    14|      */
    15|     public function boot()
    16|     {
  > 17|         LaRecipe::style('standart-light', __DIR__.'/../resources/css/theme.css');
    18|     }
    19| 
    20|     /**
    21|      * Register any application services.

  Exception trace:

  1   Intralean\StandartLight\ThemeServiceProvider::boot()
      /var/www/html/intralean/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36

  2   Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
      /var/www/html/intralean/vendor/laravel/framework/src/Illuminate/Container/Util.php:37

  Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Interestingly, when I downgrade my composer to 1.10.0, everything works fine. Moreover, on my local mac, I have no troubles using the latest composer version.

Do you have any idea?