PHPackages                             zizaco/confide-mongo - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. zizaco/confide-mongo

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

zizaco/confide-mongo
====================

Confide Mongo is a authentication solution for Laravel 4 that uses mongolid-laravel

v1.0.1(5y ago)3418.6k10MITPHPPHP &gt;=7.2

Since Jun 3Pushed 5y ago8 watchersCompare

[ Source](https://github.com/Zizaco/confide-mongo)[ Packagist](https://packagist.org/packages/zizaco/confide-mongo)[ RSS](/packages/zizaco-confide-mongo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (8)Versions (18)Used By (0)

Confide Mongo (Laravel4 Package)
================================

[](#confide-mongo-laravel4-package)

[![Confide Poster](https://camo.githubusercontent.com/29b4363086f4438425b948be02de67f9a67fe9003cb703e2da68604a4e492225/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f636f6e666964655f6d6f6e676f2e706e67)](https://camo.githubusercontent.com/29b4363086f4438425b948be02de67f9a67fe9003cb703e2da68604a4e492225/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f636f6e666964655f6d6f6e676f2e706e67)

[![Build Status](https://camo.githubusercontent.com/f69b73c1343058466db41a73bba73838fc15ee183e980a47a84678c0fdf14529/68747470733a2f2f6170692e7472617669732d63692e6f72672f5a697a61636f2f636f6e666964652d6d6f6e676f2e706e67)](https://travis-ci.org/Zizaco/confide-mongo)[![ProjectStatus](https://camo.githubusercontent.com/09f5742ad4d1cf0600a138c9b210d15d07a35fa6601aa3fc7503ecd3e7610ec6/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f5a697a61636f2f636f6e666964652d6d6f6e676f2e706e67)](http://stillmaintained.com/Zizaco/confide-mongo)

Confide is a authentication solution for **Laravel4** using [MongoLid](https://github.com/Zizaco/mongolid-laravel) made to eliminate repetitive tasks involving the management of users: Account creation, login, logout, confirmation by e-mail, password reset, etc.

Confide aims to be simple to use, quick to configure and flexible.

> Note: If you are **NOT** using MongoDB check [Confide](https://github.com/Zizaco/confide).

Features
--------

[](#features)

**Current:**

- Account confirmation (through confirmation link).
- Password reset (sending email with a change password link).
- Easily render forms for login, signup and password reset.
- Generate customizable routes for login, signup, password reset, confirmation, etc.
- Generate a customizable controller that handles the basic user account actions.
- Contains a set of methods to help basic user features.
- Integrated with the Laravel Auth component/configs.
- Field/model validation.
- Login throttling.
- Redirecting to previous route after authentication.

If you are looking for user roles and permissions see [Entrust](https://github.com/Zizaco/entrust)

**Planned:**

- Captcha in user signup and password reset.
- General improvements.

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"zizaco/confide-mongo": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'Zizaco\ConfideMongo\ConfideMongoServiceProvider'` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Zizaco\ConfideMongo\ConfideMongoServiceProvider',

),

```

At the end of `config/app.php` add `'Confide'    => 'Zizaco\Confide\ConfideFacade'` to the `$aliases` array

```
'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Confide'    => 'Zizaco\Confide\ConfideFacade',

),

```

### Configuration

[](#configuration)

Set the driver to *"mongoLid"* in `config/auth.php` as stated in [MongoLid Authentication](https://github.com/Zizaco/mongolid-laravel#authentication):

```
    ...

    'driver' => 'mongoLid',

    ...
```

This values contained in `config/auth.php` will be used by Confide Mongo to generate the controllers and routes.

Set the `address` and `name` from the `from` array in `config/mail.php`. Those will be used to send account confirmation and password reset emails to the users.

### User model

[](#user-model)

Change your User model in `app/models/User.php` to:

```
