andersao / andersao/l5-repository

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

Offen
#536 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
4.2k
Forks
880
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Laravel Version : 5.5
I5-repository Version : 2.6

![image](https://user-images.githubusercontent.com/19928781/41388651-88667b36-6fbf-11e8-822f-255ebbec383c.png)

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 !

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.