Welcome to the fourth instalment of Laravel Digest, the series where I give a regular rundown of important changes, fixes and additions to Laravel’s master branch. Due to the release of Laravel 4.1 I’ve decided to bring this post forward to match the status of Laravel on the day(ish) of release. As such, below are the changes up to the middle of December 2013:
Collection#firstcan now have a closure (and default) passed to it that will be passed into a
array_first-like call (
1 2 3 4 5 6 7 8 9
array_lasthelper (side-effect of some other work which was reverted) that works the same as array_first (
You can now retrieve failed recipients to
Model::destroy()now returns the number of rows that were deleted (
There’s also a bunch of new documentation for all the new features I’ve spoken about:
- Upgrade guide
- New password reminder system
- Cache tags
- Queues had a number of changes, the most important being logging of failed jobs. So its documentation should be looked over.
- A new SSH module was incorporated primarily for interacting with a live environment (for example, deployment or tailing remote logs).
- New Blade features
- Database read/write connection splitting
- Database query builder got some extra methods as pessimistic locking.
- Eloquent relationships had a few updates too: