Articles

Showing 10 posts
January 30th, 2025

How to Cast Pivot Table Columns in Laravel

In this article, I'll show you how to set up casts for pivot table columns in your Laravel relationships.

Author
Alex Garrett-Smith
Eloquent
Laravel
January 27th, 2025

How to Publish Inertia's Config File in Laravel

Need to make a tweak to Inertia's default config? Here's how to publish the config/inertia.php config file.

Author
Alex Garrett-Smith
Inertia
January 26th, 2025

History Encryption with Inertia

How do you prevent freshly signed-out users from hitting back in their browser, potentially exposing sensitive information? Using Inertia's history encryption feature!

Author
Alex Garrett-Smith
Inertia
January 24th, 2025

Simple Real-time Validation with Livewire

In this article, we'll take the example of validating a username in real-time to check it's taken, giving us instant feedback before the user hits submit.

Author
Alex Garrett-Smith
Livewire
January 24th, 2025

Local Email Testing in Laravel – The Full Guide

Almost every Laravel application sends emails, so you'll need a way to receive emails locally to ensure they look good.

Author
Alex Garrett-Smith
Laravel
January 23rd, 2025

Defining Globals in Inertia

Defining globals in Inertia is quick and easy. Let's look at adding and accessing globals alongside warnings and an alternative approach.

Author
Alex Garrett-Smith
Inertia
January 23rd, 2025

How to Validate Array Keys in Laravel

If you're validating array data where the keys are significant and require validation, it's not immediately obvious how this can be achieved in Laravel.

Author
Alex Garrett-Smith
Laravel
January 15th, 2025

Missing Laravel Config Files? Here's How to Publish Them

Laravel 11 (and onwards) removes some configuration files by default. If you need to modify them, you'll have to publish them yourself. Here's how.

Author
Alex Garrett-Smith
Laravel
December 19th, 2024

How to fix "No application encryption key has been specified" in Laravel

Laravel relies on an application key to be set for encryption and other security purposes. If it's not set, you're not getting anywhere.

Author
Alex Garrett-Smith
Laravel
December 19th, 2024

Making Fathom Analytics Work with wire:navigate in Livewire

If you're using wire:navigate in Livewire, chances are Fathom Analytics won't pick up these events.

Author
Alex Garrett-Smith
Livewire

Tags