🔥 Weekly thread #13 of 2022

🔥 This week's code tips for Laravel developers

A weekly thread 🧵

You can queue Closures

5

🔥 You can queue Closures

You can queue Closures

I had no idea you could queue closures in @laravelphp until today.

You can freeze time in tests

1

🔥 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.