Laravel DB Sync is an awesome package that let you sync a remote database to a local database in Laravel. You can install this package via composer: composer require dcblogdev/laravel-db-sync

Set the remote database credentials in your.env file

To export a remote database to OVERRIDE your local database by running: php artisan db:production-sync Provide a filename for export on the fly by passing the option --filename, remember to provide.SQL php artisan db:production-sync --filename=other.sql
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners