Copying Heroku Environment Variables Across Projects

under Devops

Here's two quick commands you can use to copy Heroku environment variables across projects using the Heroku CLI.

Moving on From CRUD

under Laravel

CRUD-based naming for web applications works, but there's a better way using Single Action Controllers and VerbSubjectType naming patterns.

Caching Laravel HTML With Cloudflare

under Laravel

Laravel's default setup prevents Cloudflare from caching HTML responses.

Logging Messages to Slack Channels with Laravel

under Laravel

Laravel's logging system makes it very easy to system notifications to your company's Slack channel.

Create a Reverse Proxy with Cloudflare Workers

under Devops

Here's a quick copy/paste snippet you can use to create a reverse proxy server in Cloudflare.

Temporary Relationship Trait for Laravel

under Laravel

Here's a small trait you can use to access "temporary" relationships in Laravel.

"Where Has All" Functionality in Laravel

under Laravel

Laravel doesn't have a whereHasAll method built in, but here's how you can replicate it yourself.

Failing to start MySQL inside GitHub Actions

under Laravel

If you've recently started running into an issue with MySQL on GitHub Actions, you may need to update your MYSQL_USER variable.

Replacing Laravel Mix with Vite

under Laravel

In this guide, we'll replace Laravel Mix with Vite in a Laravel Jetstream (Inertia/Vue) application.

GitHub Action to Deploy Laravel Vapor Apps

under Laravel

Here's a GitHub Actions file you can use to deploy Laravel applications to Laravel Vapor.

Goals for 2021

under Thoughts

Taking a new approach to goal setting in 2021 by making my goals public, high level, and planned out.

Adding Stripe Checkout and Customer Portal to your Laravel application

under Laravel

Learn how to add Stripe's Checkout and Customer Portal products to your Laravel application using Laravel Cashier.

Why You Should be Using React Context More Often

under React

React Context can be more than just global state in an app. I like to think of Context as "encapsulated state".

Validating Props in Vue

under Vue

Use Vue's built-in prop validators to validate your component's props.

Storing and testing encrypted values in Laravel

under Laravel

A couple of open source packages makes storing and testing encrypted database values in Laravel a breeze.