Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorException "Undefined variable: fields" on generate:scaffold command with Laravel 5.2 #8

Open
gpstiip88 opened this issue Feb 22, 2016 · 3 comments

Comments

@gpstiip88
Copy link

Hi,
I've used this command with Laravel 5.1 and It works very well. Now I'd like to use it with Laravel 5.2 but when I try to generate the scaffold's views I get the Error "Undefined variable: fields".
But I've also find the solution:
in file ScaffoldGenerator.php at row 255 I've changed
return new FieldsDumper($fields);
to
return new FieldsDumper($this->console->option('fields'));
and now it works.

I hope this can be usefull for you.

@c1t1zen
Copy link

c1t1zen commented Mar 10, 2016

i got the following errors:

Do you want to create view resources? (yes/no) [no]:
yes

[ErrorException]
Undefined variable: fields

@c1t1zen
Copy link

c1t1zen commented Mar 10, 2016

i hope you fix this error

thank you in advance

@trong291990
Copy link
Contributor

fixed in 2.2
@gravitano pls close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants