๐Ÿš€ Laravel Prompts CLIs, Profanify, and Redactable Models

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

Online version โ€ข My preferences โ€ข Unsubscribe