The Laravel docs set up mocks inside a closure, and most of us copied that patte...

@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 masteringlaravel.io/daily/2026