New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced seeInDatabase query #9292
Comments
Don't we have |
[
'id' => 1,
'deleted_at' => '2015-19-06'
] $this->missingFromDatabase('vehicles', ['id' => 1, 'deleted_at' => null]); However, this doesn't necessarily mean that this does exists in the database. With the proposed change we can check whether a row exists where |
@GrahamCampbell did you close this because nothing has happened in 4 days or because it's a bad idea? |
Send a PR with a suggested implementation. |
Did anything happen with this? Currently trying to test a soft deleted row exists and can't find a way to do |
I'd love to see this added to the system as well ... |
In the meantime for those in search of a solution, you can still do the following to get the latest version of your model after your submit request or whatever you did to change it :
And then :
Hope that helps someone. |
At the moment it doesn't seem possible to check whether a value
!=
something.If you change the
$data
parameter, on this line, to allow for either anarray
orcallable
value it becomes possible to provide a more complex query.Proposed change
This will also need to be reflected on lines 239 and 252.
Example use case
Would this be beneficial to anybody, are there any circumstance where it could break?
The text was updated successfully, but these errors were encountered: