Category: Laravel

However, this evening I needed a new faker function directly inside my tests, and discovered that the WithFaker trait didn’t create the Faker instance in the same way, not picking up on my additional faker methods at all. And my tests using my custom faker function passed straight afterward.

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners