Javascript :: Using initializeArrayWithValues

Initializes and fills an array with the specified values. Use Array(n) to create an array of the desired length, fill(v) to fill it with the desired values. You can omit val to use a default value of 0. What others are reading:What is Big O Notation?CSS :: Continue reading Javascript :: Using initializeArrayWithValues

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