InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.79k stars 813 forks source link

Illuminate\Foundation\Composer moved to Illuminate\Support\Composer for Laravel 5.2 #4

Closed anand-patel closed 8 years ago

anand-patel commented 8 years ago

[ErrorException] Argument 1 passed to InfyOm\Generator\Commands\API\APIGeneratorCommand::__construct() must be an instance of Illuminate\Foundation\Composer, instance of Illuminate\Support\Composer given, called in C:\wamp\www\poteau\vendor\infyomla bs\laravel-generator\src\InfyOmGeneratorServiceProvider.php on line 51 and defined

https://laravel.com/docs/5.2/upgrade#upgrade-5.2.0

mitulgolakiya commented 8 years ago

Then I think may be we need two separate branches to support each versions. Will solve it quickly.

mitulgolakiya commented 8 years ago

Or I think we should just disable dump-autoload things as of now and can figure out the best way later on.

mitulgolakiya commented 8 years ago

@anand-patel I just removed composer dump-autoload stuff as of now. Check it again with 5.2 and let me know if you still have any problem.

anand-patel commented 8 years ago

It's working now.

CasperLaiTW commented 8 years ago

@mitulgolakiya Maybe you can use my way, laracasts/Laravel-5-Generators-Extended#83

It's support 5.2 and 5.1

mitulgolakiya commented 8 years ago

@CasperLaiTW I have just add a issue for that #7 for it.