37 entries and growing

The Laravel Features
You Never Knew Existed

A curated collection of hidden methods, unknown classes, and underused patterns buried deep within the Laravel framework.

A Taste of What's Inside

Here are a few entries to get you started.

Hidden Methods Since 5.3

The tap() Helper

Call a closure on a value and return the value, not the closure result. Perfect for chaining side-effects without breaking a fluent chain.

Collections Helpers
Hidden Methods Since 9.x

Str::squish()

Collapse all consecutive whitespace (including newlines and tabs) into a single space and trim the result.

Helpers
Eloquent Secrets Since 10.x

Model::withoutTimestamps()

Execute operations without touching the updated_at column, useful for bulk imports and data migrations.

Database