Code Explainers
Laravel code explainers
php
<?php namespace App\Services;
Managing many-to-many tags in Laravel
many-to-many
pivot-table
collections
Intermediate
9 steps
php
<?php namespace App\Services;
Optimistic locking on invoices in Laravel
optimistic-locking
transactions
concurrency
Advanced
6 steps
php
<?php namespace App\Providers;
Defining rate limiters in Laravel
rate limiting
service provider
closures
Intermediate
7 steps
php
<?php namespace App\Http\Middleware;
ETag caching and gzip in Laravel middleware
middleware
http-caching
etag
Intermediate
8 steps
php
<?php namespace App\Http\Resources;
Shaping API JSON with a Laravel Resource
api
serialization
data transformation
Intermediate
7 steps
php
<?php namespace App\Jobs;
Building a unique queued job in Laravel
queues
background-jobs
idempotency
Intermediate
7 steps
php
<?php namespace App\Models;
Making an Eloquent model searchable with Scout in Laravel
full-text-search
indexing
eloquent
Intermediate
8 steps
php
<?php namespace App\Jobs;
Serializing balance reconciliation in Laravel
queues
concurrency
idempotency
Intermediate
7 steps
php
<?php namespace App\Services;
Phone verification codes in Laravel
rate-limiting
caching
hashing
Intermediate
7 steps
php
<?php namespace App\Http\Middleware;
Verifying webhook signatures in Laravel
hmac
middleware
webhooks
Intermediate
7 steps
php
<?php namespace App\Http\Controllers;
Streaming job progress with SSE in Laravel
server-sent-events
streaming
polling
Advanced
8 steps
php
<?php namespace App\Http\Requests;
How a Laravel FormRequest validates invoices
validation
authorization
form-request
Intermediate
6 steps
php
<?php namespace App\Services;
Placing an order atomically in Laravel
transactions
pessimistic-locking
concurrency
Advanced
8 steps
php
<?php namespace App\Http\Controllers;
Time-limited signed download links in Laravel
signed urls
authorization
file streaming
Intermediate
6 steps
php
<?php namespace App\Http\Requests;
Normalizing input in a Laravel FormRequest
validation
authorization
input-normalization
Intermediate
6 steps
php
<?php namespace Database\Seeders;
Building blog test data with Laravel factories
seeding
factories
relationships
Intermediate
9 steps
php
<?php namespace App\Notifications;
How a queued weekly digest email works in Laravel
notifications
queues
email
Intermediate
7 steps
php
public function importCustomers(UploadedFile $file): array { $errors = []; $imported = 0;
Validating a CSV import in Laravel
csv-parsing
validation
error-accumulation
Intermediate
8 steps