Articles

Showing 10 posts
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
December 19th, 2024

Mocking Authenticated Users in Laravel's Request

I recently found myself writing a test where I needed to test a macro applied to the Request object in Laravel. But I needed the user to be 'authenticated'.

Author
Alex Garrett-Smith
Laravel
Testing
December 18th, 2024

How to Create Your Own Laravel Helpers

How can you add your own helper functions to Laravel? It's pretty easy, and this guide will get you started.

Author
Alex Garrett-Smith
Laravel
December 17th, 2024

Caching Authenticated Users in Laravel

For even faster gains on high-traffic Laravel applications, you can cache authenticated users to avoid a trip to the database.

Author
Alex Garrett-Smith
Laravel
December 16th, 2024

The Two Main Culprits for Your Laravel Dusk Tests Not Running

Despite Dusk integrating flawlessly with the Laravel framework, sometimes your tests just won't run.

Author
Alex Garrett-Smith
Laravel
Testing
December 5th, 2024

Everything You Need to Know About Laravel's Conditionable Trait

Laravel's conditionable trait can help make code more fluent by allowing you to conditionally invoke methods within a callback. This article gives you everything you need to know to start using it.

Author
Alex Garrett-Smith
Laravel
December 4th, 2024

How to Output Ordinal Numbers with Laravel

Thanks to the relatively new Number helper, ordinal numbers (like 1st, 2nd, 3rd, etc.) are now easy to output in Laravel. Let's take a look!

Author
Alex Garrett-Smith
Laravel
November 18th, 2024

Deferred props in Inertia

The new deferred props feature of Inertia v2 eliminates the need to write our own boilerplate code to delay loading data. Let's see how it works.

Author
Alex Garrett-Smith
Inertia
JavaScript
November 14th, 2024

Polling in Inertia

The usePoll helper has landed in Inertia, making it really easy to refresh prop data at a given interval. Here's how it works, and some tips.

Author
Alex Garrett-Smith
Inertia
JavaScript

Tags