Laravel - mongodb

From AWVVO
Revision as of 13:38, 5 April 2025 by Admin (talk | contribs) (Created page with "== Install mongodb dependency == <syntaxhighlight lang="bash" copy line highlight="0"> composer require mongodb/laravel-mongodb </syntaxhighlight> == Settings in .env == <syntaxhighlight lang="yaml" copy line highlight="0"> MONGODB_URI="mongodb+srv://..." MONGODB_DATABASE="demo" DB_CONNECTION=mongodb </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Install mongodb dependency

composer require mongodb/laravel-mongodb

Settings in .env

MONGODB_URI="mongodb+srv://..."
MONGODB_DATABASE="demo"
DB_CONNECTION=mongodb