Latest Laravel/PHP Articles

Latest Laravel/PHP Articles curated daily from around the web.


I gave a talk on this topic at LaraconAU, 2019. It covers all the ways custom collections can improve your systems design and contains some more guidance on whe...
It is often useful to show the number of related models a given instance has, but not actually need any specific information about the related models, just how...
I've been tinkering with a new way of returning various response formats by introducing dedicated response objects to my Laravel web applications.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
In this post I am going to run through my setup, but by no means do I believe this is the best way of doing things. This is what I've landed on after some trial...
On a project I am currently working on I ran into an issue due to the global url($asset) helper function. In my feature tests I was hitting a route that used th...
Laravel Backup is a fantastic package brought to us by the team at Spatie, and is only one of the many great packages they have in the wild.
I'm digging it. It's just a simple extension on the exists rule, but I think it is killer. When I started with Laravel, I always found it quick and easy to util...
Digital Ocean Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage ( Spaces), and more.
Laravel Cashier is an "expressive, fluent interface to Stripe's subscription billing services". I have really enjoyed using Cashier on my latest project and I t...
Making sure you validate incoming request data from the user is crucial for security and ensuring your app stays in a valid state. Validating data is easy peasy...
Recently I was building out a multi-tenant API using Laravel, and ran into a problem with my tests. I was getting a Lock wait timeout error on even the simplest...
Technology didn’t have to glow. […] There were devices that simply did what they were for, without demanding attention. I've always had a soft-spot for e-ink sc...
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
In the vast e-commerce landscape, offering a seamless payment experience is a critical aspect that can make or break the user's journey. Mollie, a prominent pay...
This post is part of a series of posts about Laravel Eloquent many to many relationships. A while ago I wrote about how to use a many to many relationship in La...
Stefan Zweifel explains how he stores user preferences in a Laravel application using spatie/laravel-data.