You can freeze time in tests

You can freeze time in tests

❄️In your Laravel tests, you might sometimes need to freeze the time.

This is particularly useful if you're trying to make assertions based on timestamps or need to make queries based on dates and/or times.

#laravel #php

We're writing a book, you can get it for free here.