andersao / andersao/l5-repository

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

Aperta
#536 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
4.2k
Fork
880
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 !

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.