franbarbalopez/mirror
Mirror is a Laravel package for syncing local or staging databases with production. It provides Artisan commands to export, anonymize, and import data so you can develop and test against realistic data safely without manual dumps.
composer require franbarbalopez/mirror
php artisan vendor:publish --tag="mirror-config"
config/mirror.php (enable flag, driver/connection options) and at the package README's quick-start example. Then inspect the service provider's boot() method — as of v2.0.1 it deliberately does not touch the session, so anything session-dependent is resolved later in the request lifecycle..env, exercise a single request (or command, depending on the driver), and confirm the mirrored output/record. Keep it disabled by default in production until you have verified the configuration.config/mirror.php reading from env(), then toggle per environment. This is the normal day-to-day workflow: on locally/staging, off in production.php artisan config:clear after changing mirror settings; env() calls outside config files return null once config is cached.app()->runningInConsole() or that a request/session is bound before reading it.php artisan about), verify the effective config with php artisan tinker or a dump of config('mirror'), and check logs for the driver in use. Temporarily raising the package's log level is usually faster than stepping through middleware.How can I help you explore Laravel packages today?