Skip to content

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

Description

@GabbroWick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions