Laravel 5 Select Random Row

To select a random row from MySQL using php is not a real hard process. you always can use the rand() function within your queries. but if you are using Laravel and Eloquent Model to work with your database you really should check the random() method out. Doing a select with your model and using… Continue reading Laravel 5 Select Random Row

See changes between remote and local repository in Git

in many cases you are not sure whether the files you have on your local machine are newer or older than the ones in the remote repository. Specially when you are working with different people or you have different development environments. the easy solution for this is to use git fetch command to check what… Continue reading See changes between remote and local repository in Git