Тёмный

Practice with PHP: Mastering PHP/Laravel with MongoDB Atlas 

MongoDB
Подписаться 94 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@AnudhyanDatta
@AnudhyanDatta 11 месяцев назад
thanks for the guidance
@hubertnguyen1309
@hubertnguyen1309 11 месяцев назад
You're welcome!
@JeffersonArias-do1gy
@JeffersonArias-do1gy 5 месяцев назад
Thanks
@hubertnguyen1309
@hubertnguyen1309 3 месяца назад
Welcome!
@keithyung2347
@keithyung2347 10 месяцев назад
Should operations done on the route api(especially database related) be done on controllers instead?
@hubertnguyen1309
@hubertnguyen1309 9 месяцев назад
We used the API routing because it makes it easier/clearer from a tutorial point of view. It can be done in other ways.
@isaachatilima
@isaachatilima 11 месяцев назад
Do I need to make migrations or just defining a collection in the model is fine?
@HubertNguyen
@HubertNguyen 11 месяцев назад
You don't have to make a migration to initialize the collection's schema with MongoDB. Define your Laravel model and start writing to the collection.
@jemznwekejnr.2521
@jemznwekejnr.2521 9 месяцев назад
I follow the steps on this video, the MongoDB connection is successful, but when I try to register a user or store data using a model, I get this error message. Error Call to a member function prepare() on null Please how do I resolve this challenge?
@hubertnguyen1309
@hubertnguyen1309 9 месяцев назад
Great about the successful connection! Was the model declared using the MongoDB Extension? "use Illuminate\Database\Eloquent\Model;" is replaced by "use MongoDB\Laravel\Eloquent\Model;"
@AnshDigixito
@AnshDigixito 8 месяцев назад
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires mongodb/laravel-mongodb 4.0.0 -> satisfiable by mongodb/laravel-mongodb[4.0.0]. - mongodb/laravel-mongodb 4.0.0 requires ext-mongodb ^1.15 -> it is missing from your system. Install or enable PHP's mongodb extension. Problem 2 - mongodb/mongodb 1.12.0 requires ext-mongodb ^1.13.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb[1.13.0, ..., 1.13.1] require ext-mongodb ^1.14.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb[1.16.0, ..., 1.16.1] require ext-mongodb ^1.16.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb 1.17.0 requires ext-mongodb ^1.17.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - Root composer.json requires mongodb/mongodb ^1.12 -> satisfiable by mongodb/mongodb[1.12.0, ..., 1.17.0]. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-mongodb` to temporarily ignore these required extensions. Installation failed, reverting ./composer.json to its original content. please suggest me how to connect and what changes required in php.ini file for connect mongo with laravel
@kusumsingh8656
@kusumsingh8656 10 месяцев назад
composer require mongodb/laravel-mongodb:4.0.0 I am getting error in this
@hubertnguyen1309
@hubertnguyen1309 10 месяцев назад
What kind of error are you getting, @kusumsingh8656 ?
@myothantthedev
@myothantthedev 9 месяцев назад
@@hubertnguyen1309 Problem 1 - Root composer.json requires mongodb/laravel-mongodb 4.0.0 -> satisfiable by mongodb/laravel-mongodb[4.0.0]. - mongodb/laravel-mongodb 4.0.0 requires illuminate/support ^10.0 -> found illuminate/support[v10.0.0, ..., v10.43.0] but these were not loaded, likely because it conflicts with another require.
@hubertnguyen1309
@hubertnguyen1309 8 месяцев назад
@@myothantthedev try without specifying the version
@hubertnguyen1309
@hubertnguyen1309 6 месяцев назад
@@myothantthedev and @kusumsingh8656 : try removing the version in composer.json
@nmadhushanka
@nmadhushanka 9 месяцев назад
I got an error 'Class "MongoDB\Driver\Manager" not found'. why is that ?
@hubertnguyen1309
@hubertnguyen1309 8 месяцев назад
Usually, this might happen when using an old MongoDB extension, or perhaps the extension was not loaded via php.ini. Does this happen using our CodeSpaces, or do you have your own PHP stack?
8 месяцев назад
I use laragon and php 8.1 , i was reviewed the php.ini and is active the extensión=php_mongodb.dll But when i try to install the laravel-mongo package in laravel 10, I got the same error 😢 may you help me with a url to download a correct file to My php version (Windows x64) Or tell me some guide to repair the error.? I agree your effort and excelent video... Thsnks
8 месяцев назад
Please can you help me,how can i access to your CodeSpaces?
@soufianebouanani1997
@soufianebouanani1997 7 месяцев назад
thanks for the guidance
@hubertnguyen1309
@hubertnguyen1309 6 месяцев назад
you're welcome!
@AnshDigixito
@AnshDigixito 8 месяцев назад
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires mongodb/laravel-mongodb 4.0.0 -> satisfiable by mongodb/laravel-mongodb[4.0.0]. - mongodb/laravel-mongodb 4.0.0 requires ext-mongodb ^1.15 -> it is missing from your system. Install or enable PHP's mongodb extension. Problem 2 - mongodb/mongodb 1.12.0 requires ext-mongodb ^1.13.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb[1.13.0, ..., 1.13.1] require ext-mongodb ^1.14.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb[1.16.0, ..., 1.16.1] require ext-mongodb ^1.16.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - mongodb/mongodb 1.17.0 requires ext-mongodb ^1.17.0 -> it is missing from your system. Install or enable PHP's mongodb extension. - Root composer.json requires mongodb/mongodb ^1.12 -> satisfiable by mongodb/mongodb[1.12.0, ..., 1.17.0]. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-mongodb` to temporarily ignore these required extensions. Installation failed, reverting ./composer.json to its original content. I am facing this error please provide me solution
@hubertnguyen1309
@hubertnguyen1309 6 месяцев назад
You can try removing the version #
@hubertnguyen1309
@hubertnguyen1309 6 месяцев назад
also, try installing the lastest version of ext-mongodb
Далее
PHP is the future
34:27
Просмотров 180 тыс.
Одинокая сестра
00:14
Просмотров 15 тыс.
Laravel vs React
9:40
Просмотров 61 тыс.
Why is Laravel NOT used in Big Development Projects?
11:53
Microsoft Makes Windows Worse With AI
9:34
Просмотров 172 тыс.
Think Fast, Talk Smart: Communication Techniques
58:20
Drizzle ORM in 100 Seconds
2:54
Просмотров 472 тыс.
The Tools I Use to Build Products in Laravel
19:00
Просмотров 35 тыс.
MongoDB Crash Course 2022
27:22
Просмотров 202 тыс.
Setting Up MongoDB with Laravel Herd
7:17
Просмотров 1 тыс.
MongoDB + Python #1 - CRUD, Relationships and More
54:52
Одинокая сестра
00:14
Просмотров 15 тыс.