It is actually pretty easy. In my case I needed to reach from Laravel Sail to my local MongoDB Database. Continue reading How to access local MongoDB server from a Docker Environment
Tag: MongoDB
How to use MongoDB with Laravel?
To use MongoDB as the database for a Laravel project, you can use a package called “jenssegers/mongodb”. To install this package, run the following command in your terminal: