orangehill / iseed

Laravel Inverse Seed Generator
BSD 2-Clause "Simplified" License
2.74k stars 375 forks source link

lumen Call to undefined method Laravel\Lumen\Application::booting() #199

Open nece001 opened 2 years ago

nece001 commented 2 years ago

In Lumen, I have this error: Call to undefined method Laravel\Lumen\Application::booting()

:(

kareemashraf commented 11 months ago

same here

cloudties commented 2 months ago

solution

1) vi ./bootstrap/app.php $app->register(Orangehill\Iseed\IseedServiceProvider::class); php artisan config:cache composer dump-auto

2) vi ./vendor/orangehill/iseed/src/Orangehill/Iseed/IseedServiceProvider.php

     $this->app->make(Facades\Iseed::class);

      /*$this->app->booting(function() {
          $loader = \Illuminate\Foundation\AliasLoader::getInstance();
          $loader->alias('Iseed', 'Orangehill\Iseed\Facades\Iseed');
      });*/

3)

vi Orangehill/Iseed/IseedCommand.php change use file_exists instead of \File::exists