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"! 🚀
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"! 🚀
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"! 🚀
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…
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"! 🚀
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"! 🚀
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…
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…
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…
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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…
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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"! 🚀
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…
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"!…
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"! 🚀
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"! 🚀
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…
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"! 🚀
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. 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"! 🚀
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"! 🚀
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…
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…
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"! 🚀
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…
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"! 🚀
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"! 🚀
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"! 🚀
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 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"! 🚀
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"! 🚀
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"! 🚀