Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!

Add a command to dump your database in Laravel 5

This Laravel 5 package provides an artisan command to dump your database to a file. When installed you can dump your database with this command

php artisan db:backup

A file containing the dump of your database will be created in the directory you specified in the config-file.

I plan on adding support for using Laravel 5 Cloud storage in the near future. It will then be possible your dump on cloud based storage such as S3 or Dropbox.



Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing with his kraut rock band.