Laravel
Laravel tutorials, packages, performance optimization, queues, Eloquent patterns, and best practices for PHP applications.
26 notes
-
Avoiding N+1 Queries in Laravel
Learn what the N+1 query problem is, why it silently degrades Laravel application performance, and h...
-
Cache Invalidation Strategies in Laravel
Proven strategies for keeping your Laravel cache in sync with your database, covering tag-based inva...
-
Caching in Laravel
An overview of Laravel's cache system covering cache drivers, storing and retrieving data, cache tag...
-
Contextual Attributes in Laravel
How to use Laravel's contextual attributes to inject different implementations of an interface depen...
-
Custom Collections in Laravel
How to create custom collection classes in Laravel to encapsulate domain-specific behaviour, keeping...
-
Eloquent Builder vs Scopes in Laravel
When to use a custom Eloquent Builder, local scopes, and global scopes for organising reusable query...
-
Form Request Validation Patterns in Laravel
How to use Laravel Form Request classes for clean, reusable, and testable validation and authorisati...
-
Health Checks in Laravel
How to implement a health check endpoint in Laravel so load balancers and monitoring tools can verif...
-
Immutable Dates in Laravel
How to switch from Carbon to CarbonImmutable in Laravel to prevent subtle date mutation bugs that ar...
-
Laravel Coding Standards
Laravel-specific coding standards and best practices covering controllers, validation, Eloquent, rou...
-
Laravel Pint: Code Style Formatting
A guide to using Laravel Pint for automated PHP code style formatting, covering installation, config...
-
Logging in Laravel
An overview of Laravel's logging system covering log levels, channels, stacking multiple channels, a...
-
Mass Assignment Guarding in Laravel
How to protect your Laravel models from mass assignment vulnerabilities using the fillable and guard...
-
Monitoring and Alerting in Laravel
How to set up error tracking, uptime monitoring, and application performance monitoring for a Larave...
-
Performance Improvements in Laravel
Practical techniques for improving Laravel application performance, covering eager loading, query op...
-
Pruning Data in Laravel
Learn how to use Laravel's Prunable and MassPrunable traits to automatically clean up outdated datab...
-
Queues in Laravel
How to use Laravel queues to defer time-consuming tasks to background workers, covering job creation...
-
Rate Limiting in Laravel
How to implement rate limiting in Laravel to protect your routes and API endpoints from abuse, using...
-
Read/Write Database Splitting in Laravel
How to configure read/write database splitting in Laravel to automatically route SELECT queries to r...
-
Route Organisation and Naming in Laravel
Best practices for organising and naming routes in Laravel applications, covering named routes, rout...
-
Scheduled Tasks in Laravel
How to define and manage scheduled tasks in Laravel using the task scheduler, including cron setup,...
-
Secrets and Config Validation in Laravel
How to validate that all required environment variables are present when your Laravel application st...
-
Security Headers in Laravel
How to add HTTP security headers to a Laravel 12 application to protect against clickjacking, XSS, c...
-
Testing in Laravel
A practical guide to writing tests in Laravel with Pest, covering feature tests, unit tests, databas...
-
Using .env in Laravel
Best practices for using the .env file in Laravel to manage environment-specific configuration value...
-
Working with Large Datasets in Laravel
How to process millions of rows in Laravel without exhausting memory by using chunking, lazy collect...