The Laravel docs set up mocks inside a closure, and most of us copied that patte...
Joel Clermont @jclermont@phpc.social
The Laravel docs set up mocks inside a closure, and most of us copied that pattern. There's a flatter way to write the same mock. #php #laravel https://masteringlaravel.io/daily/2026-11-19-you-dont-need-a-closure-to-set-up-a-mock