lumen Call to undefined method Laravel\Lumen\Application::booting()
nece001 opened this issue · 2 comments
nece001 commented
In Lumen, I have this error:
Call to undefined method Laravel\Lumen\Application::booting()
:(
kareemashraf commented
same here
cloudties commented
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