Latest Laravel/PHP Articles

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


juststeveking-uk-astro.pages.dev

Laravel subdomains in Docker
There are many ways you can add Docker to your Laravel application, but how do you add docker to your Laravel application when you need sub domain support? Crea...

juststeveking-uk-astro.pages.dev

Sauber PHP
I have used a lot of different frameworks in my career, from Zend(Laminas) to Yii, Cake to Codeignitor, SlimPHP to Laravel and more. I have always been a fan of...

juststeveking-uk-astro.pages.dev

Laravel Command Bus
In Laravel 5.1 the Command Bus was replaced with Dispatchable Jobs, we can still use them but let us also look at how to add a Command Bus. To start using a com...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.

juststeveking-uk-astro.pages.dev

Building a CLI application in 2022
I have been building CLI apps for a long time, from simple bash/perl scripts back when I was a System Admin - and now using things like PHP Go or Rust. Let’s wa...

juststeveking-uk-astro.pages.dev

Testing API responses in pestPHP
I get asked about API response testing a lot, how should you do it, and where to start. I have a general rule when it comes to testing APIs, and that rule is: “...

juststeveking-uk-astro.pages.dev

Adapter Pattern
Of all of the design patterns you could use in your code, the adapter pattern is one of my all time favourites. so you can switch implementation simply by switc...

juststeveking-uk-astro.pages.dev

Tappable Query Scopes in Laravel
I recently saw an awesome tweet while browsing twitter which introduced this idea of tappable query scopes, and wanted to share it and dig into it a little more...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.

juststeveking-uk-astro.pages.dev

Laravel DDD - Routing within our Domain
In a normal Laravel application we store all of our routes within web.php or api.php typically, however how does this work with our Domain Driven Design approac...
In our last instalment we spoke about how we can use data objects and data object factories to escape what I call “array hell”, a place where we have no idea wh...

juststeveking-uk-astro.pages.dev

Laravel DDD - Querying Records in our Domain
In the last instalment we spoke about using a simplified version of the CQRS pattern to create commands. This time we are going to talk about the other side to...
In a typical Laravel application we are very used to doing things in a certain way, by the book as they say. However there comes a point in the applications lif...
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
In our previous blog post we set up our Laravel application to use Domain Driven Design, and we did this in a way that would let us expand and add new domains a...

juststeveking-uk-astro.pages.dev

Working with third party services in Laravel
I have been working with 3rd party APIs for longer than I care to admit, over time I have found a few ways that work nicely for me. In this article, I am going...

juststeveking-uk-astro.pages.dev

Introducing - Laravel Transporter
Sending API requests in any PHP framework has always been a little bit of a manual process, yes you can create an SDK or wrapper - but you are still having to d...

juststeveking-uk-astro.pages.dev

Adventures in PHP - PHP URI Builder
I would like to announce my latest package uri-builder which is a fluent interface for building a URI string. Now, it might sound simple - and you might wonder...