Skip to content

Ademking/laravel-mongodb-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-mongodb-starter

Installation (For WAMP) :

  1. Download this repo : Click Here

  2. Extract the zip file

  3. Open "client" folder and run this command ===> npm install

  4. Open "server" folder and run this command ===> composer install

  5. Install MongoDB Click Here

  6. Download MongoDB PHP extension for wamp :

    • Open this link : Click Here

    • In "DLL List" section, select your version (must be thread safe) - exemple: PHP 7.1 Thread Safe (TS) x64

  7. Extract zip file and move "php_mongodb.dll" to Wamp extensions folder

    • C:\wamp64\bin\php\php_VERSION\ext
  8. In your wamp, Open "php.ini" , Search for " Windows Extensions ", and add this line :

    • extension=php_mongodb.dll

  9. Restart your apache server... and check if mongodb exists in the list, run ===> php -m

NOTES

  • To list all records in MongoDB shell, run:

    db.COLLECTION_NAME_HERE.find().pretty()

    replace COLLECTION_NAME_HERE with your collection

  • To remove all records in MongoDB shell, run:

    db.user.remove({})

    The argument to remove() is a filter document, so passing in an empty document means 'remove all'

    read more click here

  • How To fix CORS problem in Laravel - Angular : Click Here