|
Hey there! ๐
I have a few articles for you this week. I hope you enjoy them!
โก Building a CLI with Laravel Prompts
As Laravel web developers, we often need to build Artisan commands for our applications. But interacting with the console can sometimes feel a little cumbersome. Laravel Prompts is a package that aims to improve this experience by providing a simple approach to user-friendly forms in the console.
In this article, we'll take a look at Laravel Prompts and some of its features that you can use. We'll then build a simple GitHub CLI client using Prompts to demonstrate how to use it in your applications. Finally, we'll show how to write tests for your Prompts commands.
By the end of the article, you should understand how to use Prompts in your applications and how to test them.

๐ Continue reading...
๐ฅ Redact Model Fields in Laravel
I've just released a brand new package: Redactable Models! ๐
It's a Laravel package that you can use to redact, obfuscate, or mask fields from your models in a consistent and easy way.
When building web applications, you'll often need to keep hold of old data for auditing or reporting purposes. But for data privacy and security reasons, you may want to redact the sensitive information from the data that you store. This way, you can keep the rows in the database, but without the sensitive information.
This package allows you to define which models and fields should be redacted, and how they should be redacted.
In this article, we're going to cover what the package does and how you can use it in your Laravel apps. I've also recorded a video showing you how to use the package!

๐ Continue reading...
๐งผ Profanify: Prevent Profanity in Your PHP Codebase
We've all been there. You're working on a project, and you just can't seem to get the code right. You're getting frustrated and you're starting to lose your cool. Then you're tempted to leave a comment in your code that expresses your frustration.
It's really easy to want to vent your frustrations in your code. Not only can it help you express your feelings, but you can highlight to the next developer that the code is a bit of a mess and that you couldn't quite get it right.
But leaving profanity in your code is never a good idea. It's unprofessional and can be offensive to others, especially if you're leaving the comment on someone else's code. In fact, keeping your cool when auditing someone else's code is something I've written about before.
In this Quickfire article, we're going to look at a package called Profanify (by Jon Purvis) that can help you find and remove profanity from your PHP code.

๐ Continue reading...
Affiliate
๐ Advanced Inertia

Take your Inertia.js skills to the next level! Advanced Inertia is a fantastic book by Boris Lepikhin that teaches you advanced concepts for building and maintaining Laravel applications using Inertia.
The premium package includes:
โ
The 180-page book in PDF format
โ
Best practices for building monolith apps
โ
Static analysis and code quality workflow
โ
The source code of MixJobs, a production-ready Laravel application
๐ฐ Get 20% off with the limited time discount code: SPRINGBREAK
๐ Get Advanced Inertia Now!
โก Past Blog Posts
Check out some of my blog posts from the past:
๐ Named Arguments in PHP
๐ Testing Saloon API Integrations in Laravel
๐ The #[\Override] Attribute in PHP
๐ Magic Constants in PHP
๐ Review: Mastering Laravel Validation Rules
๐ Want to Become an Awesome Laravel Developer?
Save 20% and get Battle Ready Laravel for only $31.20!
A guide to auditing, testing, fixing, and improving your Laravel applications.
โ
Over 220+ pages of content
โ
Available as PDF and EPUB
โ
Actionable advice
โ
Over 1k+ copies sold
Save 20% with discount code: BATTLE20
๐ Get Your Copy of "Battle Ready Laravel" Now!

๐ Connect with Me
Twitter: @AshAllenDesign
LinkedIn: Ashley Allen
|