partition() splits a collection into two groups in one pass. sole() asserts there's exactly one match and hands it to you directly. Both quietly replace common loop patterns.
Tips
Two artisan commands that answer "is my scheduled task actually going to run, and when" without editing crontab or waiting until 3am to find out.
Nested Blade components shouldn't need every parent prop repeated at every level. @aware reaches up the component tree so children can read what their parent already knows.
Skip the pile of if-statements building up a $rules array by hand. Rule::when() lets you attach rules conditionally, right where they belong.
Stop writing paired getFooAttribute()/setFooAttribute() methods. Attribute::make() puts the get and set logic for one field in one place.
Stop reading a value, adding one, and saving it back. Eloquent's increment() and decrement() do the math in the database, race-condition free.
php artisan make:model does more than scaffold a bare class. These flags save you the follow-up commands.
Stop hardcoding foreign key column names in every query. whereBelongsTo() reads the relationship definition for you.
N+1 queries usually get discovered in production. This one setting makes Eloquent throw the moment they happen locally instead.
Calling five APIs one after another adds up their latencies. Http::pool() fires them concurrently and waits once.
Stop hand-rolling LIKE clauses with percent signs. These built-in query builder methods read cleaner and avoid dialect quirks.
Eager loading the parent relation still triggers a query per child model. chaperone() closes that gap for free.