Category: Tips

PHP: Flip a coin

In this post, we will write a small program that will flip a coin for…

 Posted in PHP, Tips Tagged , , , ,
Vue.js

Vuejs: how to access getter from other getter

In VueJS 2.0, you must pass both state and getters. Getters are passed to other getters as the 2nd…

 Posted in Daily Tips, Tips, Vuejs Tagged , , ,
Laravel

Laravel: Usage of old() in form when editing

Best practice to show old value when editing a form in Laravel?

 Posted in Daily Tips, Laravel, Tips Tagged , ,

Tip: How to install pip on mac OS

Even though you are not coding Python, you might come across some time where you…

 Posted in osMac, Tips Tagged , , ,
database

What is the difference between a model and a repository

Repository actually allows you to separate your business logic from database layer (Model). Repository/Entity are…

 Posted in Databases, Eloquent, Laravel, PHP, Symfony, Tips, Uncategorized Tagged , , , , , , ,

Install nvm – Node Version Manager & node on Mac

Quick tip of the day. How to install nvm (Node Version Manager) & Node? osMac:…

 Posted in osMac, Tips Tagged , , , , , , , ,

Create multiple directories with mkdir

Just a single line of code to create multple folders with mkdir command. mkdir -p…

 Posted in Linux, Tips