How To Generate and Use Fake Records with Laravel Model Factories

Testing is essential to web development. Laravel Model factories define database records in a predictable and easily replicable way so that your app tests are consistent and controlled. Model factories define a set of default attributes for each of your Eloquent models.

This post was originally published on Kinsta by Steve Bonisteel.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.