l2t

How to change db username and password in Laravel Sail?

Asked: a month ago

In order to update db credentials in Laravel sail change you .env file with new credentials and run following commands:

# bring the sail down
sail down -v

# remove cache and re-build
sail build --no-cache

# bring the sail up
sail up -d
Viewed: 110 times
Liked: 6 times