Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 591 forks source link

Call to undefined method Laravel\Lumen\Application::configPath() #166

Open vt-nwei opened 6 years ago

vt-nwei commented 6 years ago

Lumen
"laravel/lumen-framework": "5.5.*",

terranc commented 5 years ago

the same

rizhenkov commented 5 years ago

too. After istalling Xethron/migrations-generator and registering service provider

kalimulhaq commented 5 years ago

MeToo

Lumen: 5.7.*

angelovancleef commented 5 years ago

Nice, 20 days and no solution :(

Guess we have to add them manually!

nicolasrz commented 5 years ago

hey @angelovancleef did you found a solution ? Can you share it ? :)

aaronkaz commented 5 years ago

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

sohaieb commented 4 years ago

my solution for this is simple :

  1. Create a new laravel service provider in your application like this:
    
    namespace App\Providers;

use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider; use Way\Generators\GeneratorsServiceProvider; // IMPORTANT !!

class GeneratorsFixer extends GeneratorsServiceProvider // IMPORTANT !! { /**

  1. register and replace the Way\Generators\GeneratorsServiceProvider by your custom service provider (in our case it's \App\Providers\GeneratorsFixer::class) in your AppServiceprovider.

that's all :)