Support the ongoing development of Laravel.io →
posted 5 years ago
Last updated 2 years ago.
0
moderator

Do you use SoftDeletes on your model/table? If that is the case you need to add 'deleted_at' => null to the validation.

$this->assertDatabaseMissing('deposito',['id_deposito'=> $deposit->id_deposito, 'deleted_at' => null]);
0

Sign in to participate in this thread!

Eventy

Your banner here too?

andrea giorg Joined 13 Sep 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.