Open vt-nwei opened 6 years ago
the same
too. After istalling Xethron/migrations-generator and registering service provider
Lumen: 5.7.*
Nice, 20 days and no solution :(
Guess we have to add them manually!
hey @angelovancleef did you found a solution ? Can you share it ? :)
I did a stack trace and made some monkey-patches to get it working for me (lumen 5.5)
Here's the gist https://gist.github.com/aaronkaz/44586f270410d011dc3d93f960c046e7
my solution for this is simple :
namespace App\Providers;
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider; use Way\Generators\GeneratorsServiceProvider; // IMPORTANT !!
class GeneratorsFixer extends GeneratorsServiceProvider // IMPORTANT !! { /**
Register the config paths */ public function registerConfig() { $userConfigFile = config_path().'/generators.config.php'; // IMPORTANT !! $packageConfigFile = base_path().'/vendor/xethron/laravel-4-generators/src/config/config.php'; // IMPORTANT !! $config = $this->app['files']->getRequire($packageConfigFile);
if (file_exists($userConfigFile)) {
$userConfig = $this->app['files']->getRequire($userConfigFile);
$config = array_replace_recursive($config, $userConfig);
}
$this->app['config']->set('generators.config', $config);
} }
that's all :)
Lumen
"laravel/lumen-framework": "5.5.*",