Laravel Mix Alias is an NPM package that provides a convenience method around WebPack’s resolve.alias configuration. Here’s an example of how you can make require and importstatements simpler: Which enables you to write import statements like this: If you’re not familiar with Webpack’s resolve.alias config, here’s how you can Continue reading Laravel Mix Alias
The PHP team recently approved the Short Arrow Functions RFC proposed by Nikita Popov, Levi Morrison, and Bob Weinand. In the RFC it shows this as an example to give you an idea on how it can be used: A Continue reading PHP Approves Short Arrow Functions
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