Skip to content

The "$this->repository->create()" throws me an error #536

@SimonLeeee

Description

@SimonLeeee

Laravel Version : 5.5
I5-repository Version : 2.6

image

It throws me an error above; I find the reason is that "getFillable()" method in Laravel GuardsAttributes.php doesn't get the Model's fillable of attribute.

This was the situation; At first time , I used command "php artisan make:entity Layout", but I forgot adding the Model's fillable; And I added it back ,then deleted the following files :
"Entities/Layout.php", "Http/Controllers/Layout*.php", "Http/Requests/Layout*.php", "App/Repositories/Layout*.php", "App/Validators/Layout*.php";
Then, I tried to run "php artisan make:entity Layout" again, but when I use "$this->repository->create()" which throws me an error.

Can someone help me ? Thank you very much !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions