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

What does ‘use strict’ do and what are some of the key benefits to using it?

Including ‘use strict’ at the beginning of your JavaScript source file enables strict mode, which enforces more strict parsing and error handling of JavaScript code. It is considered a good practice and offers a lot of benefits, such as: Easier debugging due Continue reading What does ‘use strict’ do and what are some of the key benefits to using it?