Owen Conti

Category: Laravel

Local Laravel Development With HTTPS

Posted on under Laravel by Owen Conti.

Setting up HTTPS for your local Laravel development environment is easier than you may think.

Moving on From CRUD

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Logging Messages to Slack Channels with Laravel

Posted on under Laravel by Owen Conti.

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

Temporary Relationship Trait for Laravel

Posted on under Laravel by Owen Conti.

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

"Where Has All" Functionality in Laravel

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

GitHub Action to Deploy Laravel Vapor Apps

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Faking the Queue in Laravel Tests

Posted on under Laravel by Owen Conti.

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"

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Posted on under Laravel by Owen Conti.

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

Laravel Request Logger Snippet

Posted on under Laravel by Owen Conti.

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

Improving the Performance of your Laravel Queue

Posted on under Laravel by Owen Conti.

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

Laravel Forge Fails to Provision Servers on AWS

Posted on under Laravel by Owen Conti.

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