Add a command to dump your database in Laravel 5 original

by Freek Van der Herten – 1 minute read

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

[code]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.

 

 

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.