Eloquent ORM – Increments and Decrements

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);
$article->read_count++;
$article->save();
 You can do Continue reading Eloquent ORM – Increments and Decrements

PHP – Read files/content/file details from a .zip archive, without extracting them

The above code, gives an example of the methods to use for extracting the contents of files, or status and size of files, in a .zip archive. What others are reading:Laravel 5.8 is ReleasedEloquent ORM – Increments and DecrementsWhat is Continue reading PHP – Read files/content/file details from a .zip archive, without extracting them

PHP – Anonymous Functions and Closures (Part II)

Suppose the application should reduce the list of percentages to those that are equal to or greater than a user-specified value. For this we can use array_filter(). The array_filter() function accepts an input array and the name of a function, Continue reading PHP – Anonymous Functions and Closures (Part II)