PHPackages                             aasawari.sahasrabuddhe/laravel-with-mongodb-starter-kit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. aasawari.sahasrabuddhe/laravel-with-mongodb-starter-kit

ActiveProject[Database &amp; ORM](/categories/database)

aasawari.sahasrabuddhe/laravel-with-mongodb-starter-kit
=======================================================

A Laravel application pre-configured with MongoDB integration

v1.0.4(11mo ago)12MITBladePHP ^8.2

Since Jun 2Pushed 10mo agoCompare

[ Source](https://github.com/mongodb-developer/laravel-mongodb-starter-kit)[ Packagist](https://packagist.org/packages/aasawari.sahasrabuddhe/laravel-with-mongodb-starter-kit)[ Docs](https://github.com/aasawariMongoDB/mongodb-starter-kit-for-laravel.git)[ RSS](/packages/aasawarisahasrabuddhe-laravel-with-mongodb-starter-kit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (5)Used By (0)

Laravel MongoDB Starter Kit
===========================

[](#laravel-mongodb-starter-kit)

A Laravel application pre-configured with MongoDB integration, complete with authentication system and user management functionality. This starter kit provides all the necessary configurations and components to quickly build Laravel applications with MongoDB as the database.

Features
--------

[](#features)

- **Laravel 12** - Latest version of the Laravel framework
- **MongoDB Integration** - Seamless MongoDB database connection using `mongodb/laravel-mongodb`
- **Authentication System** - Complete auth flow with Laravel Breeze
- **User Management** - CRUD operations for user administration
- **Email Verification** - Built-in email verification system
- **Password Reset** - Secure password reset functionality
- **Profile Management** - User profile editing capabilities
- **Pre-configured Models &amp; Controllers** - Ready-to-use User model and authentication controllers

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- MongoDB extension (`ext-mongodb`)
- MongoDB server (local or cloud)
- Composer

Installation
------------

[](#installation)

Create a new Laravel project using this starter kit:

```
composer create-project mongodb-developer/laravel-with-mongodb-starter-kit my-project
cd my-project
```

Pre-configured Components
-------------------------

[](#pre-configured-components)

This starter kit comes with the following pre-configured components:

### 1. Database Configuration

[](#1-database-configuration)

The MongoDB connection is already configured in `config/database.php`:

```
'mongodb' => [
    'driver' => 'mongodb',
    'dsn' => env('MONGODB_URI', 'mongodb://localhost:27017'),
    'database' => env('MONGODB_DATABASE', 'laravel_app'),
],
```

### 2. Environment Variables

[](#2-environment-variables)

The `.env.example` file includes MongoDB-specific configuration:

```
###> mongodb/laravel-mongodb ###
# DB_CONNECTION=mongodb
# Format described at https://www.mongodb.com/docs/php-library/current/connect/connection-options/
# MONGODB_URI="mongodb://username:password@localhost:27017/?authSource=auth-db"
# MONGODB_URI="mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority"
# MONGODB_DATABASE="test"
```

### 3. User Model

[](#3-user-model)

Pre-configured User model (`app/Models/User.php`) with MongoDB support:

```
