This is an example of using a Laravel Command to sync files from the local filesystem to Dropbox. In my case it is the public/uploads
directory that is being synced.
The creator of Flysystem, Frank de Jonge, gave me an example to work off of.
This example works because there are not many files in the uploads directory. I haven't tested it to see how it works with large files or large amount of files.