Laravel & PHP Articles
Learn to master Laravel and PHP by devouring our quick tips and long-form articles.
Looking to learn about something specific or need some help? Let us know.
How to Break Down Laravel Unit Tests into Types
What’s the difference between unit test, integration test, and a feature test? Which should you use for what type of test? Is it just preference or does performance factor in when using Laravel? Let me give you my take from over a decade of unit testing experience.

Understanding Wildcard Notation in Laravel Validation
Array validation in Laravel is very powerful, but sometimes it might not do exactly what we expect when we're dealing with multidimensional arrays and wildcard notation.
Let's dig into a real-world example to see how it works internally and deepen our understanding of this feature along the way.

Add Interfaces to Laravel to Increase Code Readability and Verbosity
There seems to be an endless debate: clearly written code doesn’t need comments vs comments are needed to explain code and give context. I can see both sides of this debate, but there is a middle ground. Let me show you one way.

The Benefits of Minimal Factories in Laravel
Laravel factories are a huge time-saver when writing tests. In the past, I'd build a factory to include every model property in the default state, but lately I've switched to having minimal factories by default. I'll explain my reasons for this change, and what benefits I've found.

Sign up to get updates
Get updates when we release new features and other projects.