Within your Pest / PHPUnit tests, you may use @laravelphp's "mock" method to instruct the container to use your mocked instance of the object instead of constructing the object itself. ✅
We're writing a book, you can get it for free here.
We're writing a book! Join the early access to get it for free.