A four digit year could not be found Data missing

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 recently encounter the same problem, lately I found out that the only problem is I put an invalid value to the timestamp column type.

In my case I have column email_verified_at [timestamp]. I miss understood I put a string like [email protected] instead of date values, it should be now().


have you tried using key value array in the create method:

factory(User::class)->create(['role_id' => 2]);


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 had Model::create([form inputs]);

Instead of Model::create(request([form inputs]);

Just incase someone comes across it.