Posts List

Understanding Relationships in Laravel Factories

What’s the best way to define a relationship in your Laravel factories? I’ll share some tips that will help you avoid some common pitfalls, as well as give you a deeper insight into how factories work.

One More Primary Key Example

Let’s wrap up this series of tips, and show one final example when setting an explicit primary key value can improve the quality of your tests.

Another Use Case for Explicit Primary Key Values

Yesterday I shared an example where setting explicit primary key values in your tests can make your tests more reliable. Let’s take a look at another example.

Testing Strategy: When to Use Explicit Primary Key Values

Based on the projects I’ve seen over the years, it’s a bit unusual to set an explicit primary key value when arranging the database state for a feature test. I’d like to share a few times when this strategy can make your tests more reliable.

Announcing Our New Podcast

Ever wish you could listen to Aaron and I talk about random programming topics? Well do I have some news for you.

Scout APM Review for Laravel

Application Performance Monitoring (APM) is an important tool to be aware of when developing apps for production. I recently tried out Scout APM and it’s new first-class support for Laravel and PHP. Whether you’re a seasoned APM pro or have never used this tool at all, you may be interested in my findings.