Laravel

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.

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.

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.

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.

How to fix "cannot declare class because the name is already in use" error in Laravel/PHP

under Laravel

This error can happen when you have two of the same class names declared in the same namespace.

Building a Search Drop Down Component with Laravel Livewire

under Laravel

Follow along as we build a drop down component with Caleb Porzio's Laravel Livewire.

Connecting to ElastiCache with Laravel when using Encryption In-Transit

under Laravel

If you're using ElastiCache with the Encryption In-Transit setting turned on, you'll need to tweak your REDIS_HOST environment variable when connecting with Laravel

Improve the Performance of Laravel Feature Tests using MySQL Instead of SQLite or Memory Databases

under Laravel

Many people use an in-memory SQLite database when running their Laravel feature tests. If you're doing this, chances are you can improve the runtime of your Laravel test suite.

Calling Laravel Seeders from Migrations

under Laravel

Calling seeders from migrations allows you to ensure data referenced by code always exists in your database.

Faking the Queue in Laravel Tests

under Laravel

Here's a quick package you can use to fake the Queue for a specific set of lines in a Laravel test.

Laravel Dusk Error: "Chrome version must be between 70 and 73"

under Laravel

When using Laravel Dusk, you have to ensure you're using the correct Chrome Driver version based on the version of Chrome installed on the machine.

Setting Up PHP CodeSniffer for a Laravel Application

under Laravel

Here's how you can quickly get started with linting your PHP code using the CodeSniffer library.

GitHub Actions Workflow File for a Laravel Application

under Laravel

The following workflow script can be used as a starting point for building and testing a Laravel application with GitHub Actions.

Signing AWS CloudFront Requests with Laravel

under Laravel

If you upload files to AWS S3 via your Laravel application, but want to restrict access to those files, you can do so using signed requests.

How to Handle Multiple Events with a Single Listener in Laravel

under Laravel

Laravel provides a simple way to declare event listeners out of the box via the EventServiceProvider class.

Laravel Request Logger Snippet

under Laravel

Here's a quick snippet to get HTTP request logging setup quickly in Laravel.

Improving the Performance of your Laravel Queue

under Laravel

Learn how to fix a potential performance problem when serializing models for Laravel jobs.

Laravel Forge Fails to Provision Servers on AWS

under Laravel

There's a common problem when using Laravel Forge to provision servers on AWS.