andersao / andersao/l5-repository

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

Abierto
#536 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
4.2k
Forks
880
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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 !

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.