Laravel + MongoDB in Docker: Full Setup (Urdu)
Muhammad Yasir Amin
0:00 / 0:00
Laravel + MongoDB in Docker: Full Setup (Urdu)
26 просмотров · 2 нед. назад
Muhammad Yasir Amin
29 подписчиков
26 просмотров · 2 нед. назад
Connect Laravel to MongoDB using Docker in Lesson 7 of the Laravel with Docker course. This Urdu tutorial uses separate host, port, database, username and password settings, installs the native MongoDB PHP extension inside Docker, and creates notes with an Artisan command and a Blade view.
Complete written tutorial, configuration files and troubleshooting:
https://yasiramin.dev/portfolio/blogs...
Complete course:
https://yasiramin.dev/portfolio/cours...
• Laravel with Docker | Practical Lessons
Corrected Lesson 7 source:
https://gitlab.com/yasiramin380/larav...
Topics covered:
MongoDB service and authenticated access in Docker Compose
Separate MongoDB username/password configuration and authSource
Installing mongodb-1.21.2 inside the PHP Docker image
mongodb/laravel-mongodb and matching Composer manifest/lock files
MongoNote model, demo:mongo-note command and /mongo-demo Blade page
Important fixes when following along:
Keep composer.json and composer.lock matched. MongoNote must import MongoDB\Laravel\Eloquent\Model; the default SQL Eloquent model can cause the prepare() on null error. Both fixes are explained in the written tutorial. No Windows MongoDB PHP extension is needed.
Narration: Urdu. Written guide: English.
Like, subscribe and follow the course for more practical Laravel and Docker lessons.
#Laravel #Docker #MongoDB