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

ArneDB's avatar

Migrating laravel from one computer to another one [ISSUE]

Hello there,

Intro story: I have a Laravel project which runs via vagrant on one computer which I upload to Gitlab for Version Control. I have another computer on which I clone into the project and run vagrant. This gave me an issue with the uuid.

MacBook:neverbored *************$ vagrant up The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue.

The UID used to create the VM was: ***** Your UID is: **** -> this contained my id to which I switched

The Problem: My database entries seem to be gone. I have had some users in the the database table "users".

The Question: How do I transfer my project from one computer to another one with the database in tact?

Kind Regards!

0 likes
3 replies
ArneDB's avatar

Alright, I'll try that out! Thanks for the very quick reply!

D9705996's avatar

@Yorki - You can complement @ArneDB solution using https://github.com/spatie/laravel-backup. This provides really good functionality for automatically backing up you application and your database.

Once configured you can simply do php artisan backup:run and use Task Scheduling or a native cron to run periodically.

1 like

Please or to participate in this conversation.