As soon, I am typing php artisan db:seed command.
I\'m getting Error Like:
[ReflectionException]
Clas
I have the same problem with a class. I tried composer dump-autoload and php artisan config:clear but it did not solve my problem.
Then I decided to read my code to find the problem and I found the problem. The problem in my case was a missing comma in my class. See my Model code:
{
protected
$fillable = ['agente_id', 'matter_id', 'amendment_id', 'tipo_id'];
public
$rules = [
'agente_id' => 'required', // <= See the comma
'tipo_id' => 'required'
];
public
$niceNames = [
'agente_id' => 'Membro', // <= This comma is missing on my code
'tipo_id' => 'Membro'
];
}