RSSAmplifier

Blog

Ash Allen Design

The RSS feed for the Ash Allen Design blog that contains articles about Laravel, PHP, and web development.

ashallendesign.co.ukRSS feed ↗205 posts

Latest posts

The `clamp` Function in PHP 8.6

Learn about the new "clamp" function in PHP 8.6 and how it can be used with different data types. We also discuss how to use "clamp" in your PHP and Laravel projects before PHP 8.6 is released. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Measuring Performance with the "Benchmark" Class in Laravel

Read about the different ways you can use the "Illuminate\Support\Benchmark" class in Laravel to measure the execution time of your code. We'll also discuss things to be aware of when using it. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Reduce Duplicate Cache Queries in Laravel with "Cache::memo()"

Learn about how to use the "Cache::memo()" method to memoise cache values and improve performance in your Laravel applications. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

How to Send Telegram Messages in Laravel

In this article, we'll look at how to send Telegram messages from a Laravel application using the "laravel-notification-channels/telegram" package. We'll also look at the different types of Telegram messages that can be sent. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide…

Memoisation in Laravel Using the "once" Helper

In this article, we'll discuss how to use the "once" helper in Laravel to memoise data. We'll also look at how the "once" helper works with Laravel Octane applications and alternative approaches you can use. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Using AI to Build a Laravel Feature with Junie in PhpStorm

In this video, we'll take a quick look at how to use JetBrain's AI assistant, Junie, to build a new Laravel feature in PhpStorm. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

How AI Will Impact My Job as a Freelance Web Developer in 2026

Read my opinions about how I think AI will impact my job as a freelance web developer and content creator in 2026. I discuss how I'm currently using AI in my workflow and how I think that might change over the year. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to…

Formatting PHP Code with PHP CS Fixer

Read about how to use PHP CS Fixer to automate the formatting of your PHP code. We'll also explore how to use PHP CS Fixer in parallel mode and create a GitHub Actions workflow which checks the code style on pull requests. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to…

The Difference Between ?: and ?? in PHP

Learn about the difference between the ternary operator (?:) and the null coalescing operator (??) in PHP. We'll also discuss a common gotcha that I see developers (myself included) run into when using these operators. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to…

Black Friday 2025 - Up to 50% off!

Get up to 50% off my books with Black Friday 2025 discounts. I am offering 30% off "Battle Ready Laravel" and "Consuming APIs in Laravel". I'm also offering 50% off "The Web Dev's Guide to Freelancing". Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Immutable and Mutable Dates in PHP

Read about the difference between immutable and mutable dates in PHP. We'll also look at a common gotcha I've experienced when using mutable dates and how to avoid it. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Saloon vs Guzzle vs SDK vs Http Facade for Laravel API Integrations

Read about how to decide whether to use Salon, Guzzle, an SDK, or the Http Facade to build API integrations for your Laravel applications. This article is a snippet from my "Consuming APIs in Laravel" book. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Email Utilities for Laravel v1.0 Released! 🎉

Read about my latest package: Email Utilities for Laravel. It's a small package which can be used to check and validate whether an email address is disposable or role-based. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Why I Deleted Social Media From My Phone

This year, I deleted social media from my phone. It started off as an experiment, but it has had a significant impact on improving my mental health and productivity as a web developer. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Returning HTTP 404 Responses Instead of 403 for Unauthorised Access

Read about how to use HTTP 404 responses instead of HTTP 403 when a user is unauthorised to access a resource. We'll also discuss some things to consider when using this approach. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Run PHPUnit and Pest Tests Without Vite Assets in Laravel

Read about how to use the "withoutVite" method in your Laravel apps to disable Vite during your PHPUnit and Pest tests. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

The Dangers of Dynamic Method Calls in PHP

Read about the potential dangers of using dynamic method calls in PHP. We'll discuss the issues of using them, and potential alternatives which could be used. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

The `match` Expression in PHP

Read about how to use the "match" expression in your PHP applications. We'll also discuss how to use them with PHP enums to write clean, concise code. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Check If a String is Valid JSON in PHP

Read about how to use the "json_validate" function in PHP to check whether a string is valid JSON. We'll also discuss the difference between "json_validate" and "json_decode". Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

A Guide to Serialization in PHP

Learn about serialization and how it works in PHP. We'll discuss serialized data formats, how to use serialization in PHP, and how to write tests for your serialization logic. Continue reading... Originally posted: https://www.phparch.com/article/2024-06-a-guide-to-serialization-in-php/ Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my…

Redactable Models v1.0 is Now Available!

Read about the new v1.0 release of the Redactable Models for Laravel package. The article covers the new "mass redaction" feature and the Composer dependency changes. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Fetching Favicons using the DuckDuckGo Icons API in Laravel

Read about how to use the Favicon Fetcher package in your Laravel projects to retrieve websites' favicons via the DuckDuckGo API. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Create AI Agents in Laravel — The Simple Way

Read this guest post by Revaz Ghambarashvili that introduces us to his Laravel AI package, LarAgent. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

The "never" Type in PHP

Learn about how to use the "never" type in PHP. We'll explore how to use it in your own code and look at a practical example of how it's used in the "symfony/var-dumper" package. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Check if a Signed URL is Valid in Laravel Tests

Read about how you can verify that a URL is a signed URL in your Laravel tests. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Pass a Query Builder to "whereIn" to Reduce Your DB Queries

Learn how to reduce your database queries by passing an instance of "Illuminate\Database\Query\Builder" to the "whereIn" method of your queries. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Asymmetric Property Visibility in PHP

Learn about how to use asymmetric property visibility (added in PHP 8.4) to define different visibility levels for reading and writing properties in PHP. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Formatting Monetary Values in JavaScript

Learn how to format monetary values in JavaScript using the "toLocaleString" method and "Intl.NumberFormat" object. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Check Every Key Exists in a PHP Array with Arr::hasAll()

Read about how to use the "Arr::hasAll" method (added in Laravel 12.16) in your Laravel applications to ensure a given array contains every key. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Cast Laravel Model Fields to "Illuminate\Support\Uri" with "AsUri"

Read about how to use the new `Illuminate\Database\Eloquent\Casts\AsUri` cast (added in Laravel 12.17) to cast Laravel model properties to instances of `Illuminate\Support\Uri`. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

A Guide to Custom Model Casts in Laravel

In this article, we'll dive into what "mutators", "accessors", and "casts" are and how to use them in your Laravel application. We'll also learn how to create and test your own custom Laravel casts and store objects in the database. Continue reading... Originally posted: https://www.honeybadger.io/blog/custom-laravel-casts/ Subscribe to my newsletter and get an email every time I publish a new…

Covariance and Contravariance in PHP

Learn about covariance and contravariance and how these concepts apply to your PHP code. We'll discuss these concepts in the context of classes, union types, intersection types, parameter types, and return types. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"!…

Human-Readable File Sizes in Laravel (KB, MB, GB)

Learn how to convert file sizes in bytes to human-readable file sizes using the "Number::fileSize" method. For example, we'll show how to convert "1024" to "1 KB". Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Microservices in Laravel

Learn about the strategies Gary Clarke uses to build scalable Laravel applications using microservices. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Formatting and Spelling Ordinal Numbers in PHP and Laravel

Learn how to convert numbers to ordinal numbers (e.g., "1" to "1st") in PHP and Laravel apps. We'll also discuss how to spell out ordinal numbers (e.g., "1" to "first"), including using the more verbose format used in the UK. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide…

How to Filter Profanity in Laravel with Squeaky

Read about how to use Squeaky, the new Laravel package by Jon Purvis, to validate input and ensure it doesn't contain profanity. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Preventing Destructive Commands from Running in Laravel

Read about how to use the Illuminate\\Console\\Prohibitable trait to prevent destructive commands from running in your Laravel application. We'll also look at how to prevent your own custom Artisan commands from running using this trait. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean…

The Web Dev's Guide to Freelancing is Now Available! 🎉

The Web Dev's Guide to Freelancing is now available. It's packed full of tips, tricks, strategies, and guidance you can use to kick-start your freelance web development career. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Access Route Model-Bound Models in Laravel Form Requests with "#[RouteParameter]"

Read about the #[RouteParameter] PHP attribute that you can use in Laravel to access route model-bound models in your form request classes. The article covers how to use the attribute and the problem it solves. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Working with Images in Laravel Using Intervention Image

Learn about how to use Intervention Image (intervention/image) in your Laravel applications to resize, rotate, crop, and watermark images. Continue reading... Originally posted: https://www.honeybadger.io/blog/using-intervention-image-in-laravel/ Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide…

Building Livewire Components with Volt

Read about how to use Volt to build Livewire components. We'll compare the functional API and class-based API and then look at how to test your Volt components. Continue reading... Originally posted: https://www.honeybadger.io/blog/laravel-volt/ Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide…

How to Set Up Your Mac for Web Design

In this guest article, we learn how to set up your Mac to get it ready for web design. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

A Guide to Laravel Pipelines

Learn about how to use the Pipeline class in Laravel to break complex workflows into smaller, isolated, focused processes. We'll then look at how to test our Laravel pipelines. Continue reading... Originally posted: https://www.honeybadger.io/blog/laravel-pipeline/ Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The…

Freelance Web Dev Hub: Free Community for Web Developers

Join the growing community of freelance web developers on Discord. It's a great place to ask questions, get support, and hang out with other like-minded freelancers. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Review: Advanced Inertia

Read my review of the fantastic "Advanced Inertia" book by Boris Lepikhin. I give a brief summary of what's covered, then give my opinions on what I loved about the book. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Free Tool: Freelance Rate Calculator

Use the free "Freelance Rate Calculator" tool to calculate an hourly or daily rate from an annual summary (and vice versa). Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Limit Eager Loaded Relationships on Laravel Models

Learn how to limit the eager-loaded relationships on Laravel models. We'll also take a look at the underlying SQL queries that are generated to achieve this functionality. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

The Web Dev's Guide to Freelancing (Pre-Order Now)

The Web Dev's Guide to Freelancing is now available for pre-orders. It's packed with strategies, tips, and tricks to kickstart your freelance web development career. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Transform Your Business Strategy with a Powerful SWOT Analysis

What is a SWOT Analysis and Why Is It Important? How to Create an Effective SWOT Analysis for Your Business. What Are the Common Mistakes in SWOT Analysis? Here’s a Guide to Conducting Your Analysis! Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀

Glimpse: Preview Your Laravel Pull Requests

Learn how to use Glimpse to build preview sites for your Laravel application's pull requests so you can review changes before merging them. Continue reading... Subscribe to my newsletter and get an email every time I publish a new article. You'll also get access to my FREE 70-page ebook "The Clean Coder's Guide to Laravel"! 🚀