PHPackages                             mdsys/confide - 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. mdsys/confide

ActiveLibrary

mdsys/confide
=============

Confide is an authentication solution for Laravel 4

02[1 issues](https://github.com/tinchogon34/confide/issues)PHP

Since Apr 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/tinchogon34/confide)[ Packagist](https://packagist.org/packages/mdsys/confide)[ RSS](/packages/mdsys-confide/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#confide-laravel4-package)

[![Confide Poster](https://camo.githubusercontent.com/d11b963f2de7872b4bce6e073b1c3ce82884a59ca085baf9cc479901eea31091/68747470733a2f2f646c2e64726f70626f782e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f636f6e666964652e706e67)](https://camo.githubusercontent.com/d11b963f2de7872b4bce6e073b1c3ce82884a59ca085baf9cc479901eea31091/68747470733a2f2f646c2e64726f70626f782e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f636f6e666964652e706e67)

[![Build Status](https://camo.githubusercontent.com/9c82416a61de6172a55652dce0d2390af6c53f91cc2b95c6219dbeef77b0c198/68747470733a2f2f6170692e7472617669732d63692e6f72672f5a697a61636f2f636f6e666964652e706e67)](https://travis-ci.org/Zizaco/confide)[![ProjectStatus](https://camo.githubusercontent.com/372739c1e0d65302f7069b3f651fe5ad44f22322069f9a40527032e112366e4e/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f5a697a61636f2f636f6e666964652e706e67)](http://stillmaintained.com/Zizaco/confide)

Confide is a authentication solution for **Laravel4** 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 using MongoDB check [Confide Mongo](https://github.com/Zizaco/confide-mongo).

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 (Powered by [Ardent](http://laravelbook.github.com/ardent "Ardent")).
- Login throttling.
- Redirecting to previous route after authentication.
- Checks for unique email and username in signup

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

For MongoDB support see [Confide Mongo](https://github.com/Zizaco/confide-mongo)

**Planned:**

- Captcha in user signup and password reset.

**Warning:**

By default a confirmation email is sent and users are required to confirm the email address. It is easy to change this in the confide config file. Change signup\_email and signup\_confirm to false if you do not want to send them an email and they do not need to be confirmed to be able to login to the website.

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

[](#quick-start)

### Required setup

[](#required-setup)

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

```
"zizaco/confide": "3.2.x"

```

Run the Composer update comand

```
$ composer update

```

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

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Zizaco\Confide\ConfideServiceProvider',

),

```

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 properly values to the `config/auth.php`. This values will be used by confide to generate the database migration and to generate 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)

Now generate the Confide migration and the reminder password table migration:

```
$ php artisan confide:migration

```

It will generate the `_confide_setup_users_table.php` migration. You may now run it with the artisan migrate command:

```
$ php artisan migrate

```

It will setup a table containing `email`, `password`, `confirmation_code` and `confirmed` fields, which are the default fields needed for Confide use. Feel free to add more fields to the database.

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

```
