InfyOmLabs / laravel-generator

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

doesn't work on Laravel 5.1 #238

Closed janbolat closed 8 years ago

janbolat commented 8 years ago

Hello,

just installed your package, it seems it doesn't work on Laravel 5.1. my composer.json:

 "infyomlabs/laravel-generator": "dev-master",
 "laravelcollective/html": "5.1.*",
 "infyomlabs/core-templates": "dev-master"

When I try to generate CRUD:

php artisan infyom:scaffold Bond

it returns me this error:

PHP Fatal error: Call to undefined method InfyOm\Generator\Commands\Scaffold\ScaffoldGeneratorCommand::hasOption() in /var/www/site/html/vendor/infyomlabs/laravel-generator/src/Common/GeneratorConfig.php on line 262

Apparently Laravel 5.1 doesn't have that method, but 5.2 does.

It seems you added this method 2 hours ago in 48c3889ef1d107c92b31960562e8bae2dafa9009

How can I make it work on 5.1?

mitulgolakiya commented 8 years ago

@janbolat will fix it soon.

mitulgolakiya commented 8 years ago

@janbolat its fixed. checked with the latest version.

janbolat commented 8 years ago

thanks, it works!