A four digit year could not be found Data missing
have you tried using key value array in the create
method:
factory(User::class)->create(['role_id' => 2]);
I might be late to the party, I was having the same problem and it turns out its because I provided a key without a value in the array returned.
get rid of 'provider' => ''
.
As to the cause of the problem i really don't know but it has something to do with Carbon
I had the same issue when using mass assignment and it turned I had forgotten to wrap my array of inputs in the request helper function
That is I hadModel::create([form inputs]);
Instead ofModel::create(request([form inputs]);
Just incase someone comes across it.