Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nece001 opened this issue Jan 5, 2022 · 2 comments
Open

Comments

@nece001
Copy link

nece001 commented Jan 5, 2022

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

:(

@kareemashraf
Copy link

same here

@cloudties
Copy link

solution

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

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');
      });*/

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants