Laravel 11 Tutorial (with MongoDB)
Tags: laravel, mongodb, laravel11, laraveltutorial
Published: 2024-03-25 03:22:12

{% youtube mZ6lDNArPYM %}

Welcome to the Laravel 11 Tutorial in which we will create an e-commerce website with Laravel 11 and MongoDB. We are going to use Laravel 11 as the frontend of the website and MongoDB as the backend of the website to manage the database of our Laravel E-commerce website.

Laravel is one of the most popular PHP framework to develop websites. And recently, the Laravel 11 version has been launched, and we will install and use it for creating the e-commerce website and connect with MongoDB to manage its database.

Please follow the Laravel MongoDB Tutorial to get your basics clear:
https://www.youtube.com/playlist?list=PLLUtELdNs2ZYNq7oMRBFMbG6eqQ6KQKLr

In this video, we will install Xampp, Composer, Laravel 11, and MongoDB on Windows & MAC Operating system.

Follow the below steps to install Laravel 11:-

1) Install Xampp or any other Apache Server
You can install the latest Xampp version from the below link:-
https://www.apachefriends.org/download.html

2) Install Composer:-
Install Composer from the below link:-
https://getcomposer.org/download/

3) Install Laravel 11:-
Finally install Laravel 11 via Composer Command:-
composer create-project --prefer-dist laravel/laravel project_name "11.*"

Reference Links to Install Laravel 11 from scratch:
For Windows: https://www.youtube.com/watch?v=UP8OBEQdLy4
For MAC: https://www.youtube.com/watch?v=gJ5hdndJUEc

Steps to Install MongoDB on Windows:
1) Install MongoDB Community Server
2) Install MongoDB PHP Driver / Extension

1) Install MongoDB Community Server
Install MongoDB Community Server from the below link for Windows:
https://www.mongodb.com/try/download/community
(Check MongoDB Compass to install it)

2) Install MongoDB PHP Driver / Extension
Install MongoDB PHP Driver / Extension from the below link as per your Windows OS Version:
https://github.com/mongodb/mongo-php-driver/releases

Steps to Install MongoDB on MAC:

Pre-Installations:
- Install Xcode Command-Line Tools
- Install Homebrew

Ref. Link: https://brew.sh/#install

Steps to Install MongoDB on MAC:
1) Install MongoDB Community Server
2) Install MongoDB PHP Driver / Extension

1) Install MongoDB 7.0 Community Edition:
Follow the below steps to install MongoDB Community Edition using Homebrew. 

- Run the below command to download the official Homebrew for MongoDB
brew tap mongodb/brew

- Run the below command to update Homebrew and all existing formulae:
brew update

- Run below command to install MongoDB in your macOS Terminal:
brew install mongodb-community@7.0

2) Install MongoDB PHP Driver / Extension
Follow the below link to install MongoDB PHP Driver / Extension for MAC:
https://www.mongodb.com/docs/drivers/php-drivers/

- Run below command on MAC Terminal to install PHP MongoDB Extension:
$ sudo pecl install mongodb

Ref. Link: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/ 

Reference Links to Install MongoDB:
For Windows: https://www.youtube.com/watch?v=hSAdr-ZIEKk
For MAC: https://www.youtube.com/watch?v=jp6jwEhFXC0

►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers