Automatic database backups for Laravel applications to Dropbox

I was tasked with setting up database backups for all of my Laravel applications. The idea was that in a case when an error happens or an outside force is at work, I would always have at least a days old database backup saved on a remote location.