The Laravel team just released v5.8.10, and this release includes two new features. A replicating model event and NotificationFake is now macroable. If you are not familiar with Model Events, read our tutorial on getting started with Laravel Model Events and see how these can be Continue reading v5.8.10 Released Featuring a New Replicating Model Event
Both increment the variable value by 1. The difference is what they evaluate to. The postfix increment operator evaluates to the value before it was incremented. The prefix increment operator evaluates to the value after it was incremented. What others are reading:Eloquent ORM – Continue reading What is the difference between the postfix i++ and prefix ++i increment operators?
The Laravel team released Laravel 5.8.3 yesterday adding a countBy() collection method and a few protected methods to Laravel framework classes. First, the Collection::countBy method which counts the number of items in a collection by a predicate. By default, the method counts each appearance Continue reading Laravel 5.8.3 Released
Eloquent ORM seems like a simple mechanism, but under the hood, there’s a lot of semi-hidden functions and less-known ways to achieve more with it. First example :: Increments and Decrements Instead of this: $article = Article::find($article_id);
You can do Continue reading Eloquent ORM – Increments and Decrements