Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ellajhonm's avatar

How do you backup your Laravel 8 projects?

I'm working on a capstone project for uni and I want to backup my code and database in case the worst happens. For now, I just zip my laravel project, export my database using phpmyadmin and upload it to Google Drive. I wanted a way to backup that's quick and easily retrievable, i.e. if I were to use the backup when the need arises, I won't worry about conflicts with code and with the project.

So far, these are what I've found https://www.nicesnippets.com/blog/laravel-8-backup-store-on-google-drive https://www.positronx.io/laravel-database-backup-with-spatie-tutorial-example/

0 likes
6 replies
Tray2's avatar

I guess you are talking about during development?

If so I suggest using Git and GitHub or Gitlab.

ellajhonm's avatar

@martinbean Oh sorry, I forgot to include. I edited my answer. I'm working on a capstone project for uni and I want to backup my code and database in case the worst happens. If there's a means that can backup user uploaded files as well, that would be helpful too. I'll need to learn that as well.

Sinnbeck's avatar

Code : use git with github

Database/user files: Use spatie package or a service like ploi

Please or to participate in this conversation.