Xethron / migrations-generator

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

compatibility with Lumen 5.4 #137

Closed Haafiz closed 7 years ago

Haafiz commented 7 years ago

I am not sure if it is not compatible with Lumen or not. I am using Lumen 5.4 and it is giving this error: Call to undefined method Laravel\Lumen\Application::configPath() Previously it was saying Config class not found. So I added Config class alias in bootstrap/app.php but now above mentioned error.

So just wondering, how can I know if this is even compatible with Lumen or not?

kakoma commented 7 years ago

It isn't compatible with Lumen. You'd need to add a number of Helper functions to get it to work. This gist gives a good idea of how to add helpers: https://gist.github.com/mabasic/21d13eab12462e596120 You'd need to do that to address all the missing calls and then it ought to work

nicolanicola commented 7 years ago

@Haafiz did you get this to work with Lumen? I cannot get the generate command to even show up when running php artisan

Xethron commented 7 years ago

Unfortunately, Lumen compatibility isn't something I've looked at. Best case would be to generate the migrations in Laravel, and copy them over to Lumen.

If there is a simple fix that doesn't overly complicate the existing code, I'll be happy to merge a PR for it.