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 …
Daily Archives: January 23, 2016
Fix: Laravel scheduled tasks exception
So I just added a little scheduled tasks to one of my applications which was hosted on a shared environment and I realized that the task was not being executed at all. running the php command from the shell was working and it was not giving me any clue on what the problem could be. …