PHPackages                             kiwing-it/confide-doctrine - 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. kiwing-it/confide-doctrine

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

kiwing-it/confide-doctrine
==========================

Confide is an authentication solution for Laravel 4. This fork implements confide for doctrine

4.1.1(11y ago)1421[2 PRs](https://github.com/kiwing-it/confide-doctrine/pulls)MITPHPPHP &gt;=5.4.0

Since Jan 14Pushed 10y ago3 watchersCompare

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

READMEChangelogDependencies (7)Versions (53)Used By (0)

### WORK IN PROGRESS. DO NOT USE!

[](#work-in-progress-do-not-use)

Confide *(A Laravel4 Package)*
==============================

[](#confide-a-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)[![Coverage Status](https://camo.githubusercontent.com/1d3903a8e84bdf618d976bc9969c701ebef3ebf97b8dd099e47bbd6aced7da26/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f5a697a61636f2f636f6e666964652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/Zizaco/confide?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/654d6b96256c3c7f1d4ee056aff70a50fc521685e1b865b3387e1b74578e0bbb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5a697a61636f2f636f6e666964652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/Zizaco/confide/)[![ProjectStatus](https://camo.githubusercontent.com/372739c1e0d65302f7069b3f651fe5ad44f22322069f9a40527032e112366e4e/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f5a697a61636f2f636f6e666964652e706e67)](http://stillmaintained.com/Zizaco/confide)[![Latest Stable Version](https://camo.githubusercontent.com/0932d7f639b14b1909cc96f9efe1965dd645b39bd07d9d74e4eeda2f65e52010/68747470733a2f2f706f7365722e707567782e6f72672f7a697a61636f2f636f6e666964652f762f737461626c652e706e67)](https://packagist.org/packages/zizaco/confide)[![Total Downloads](https://camo.githubusercontent.com/997de550983f47ce89aafc1ee62c5f205ef3e4fcacb41485002d93e3da81198a/68747470733a2f2f706f7365722e707567782e6f72672f7a697a61636f2f636f6e666964652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/zizaco/confide)[![License](https://camo.githubusercontent.com/86d0e68d2a45780a8c8f576fff5c38cfb3824d8b8b7bb7effffe02bb42414ef3/68747470733a2f2f706f7365722e707567782e6f72672f7a697a61636f2f636f6e666964652f6c6963656e73652e706e67)](http://opensource.org/licenses/MIT)

[![SensioLabsInsight](https://camo.githubusercontent.com/b8cdc7947579860feeadf146fb5bf772560cbb14af8a3bca0d9dc91ac8f72f09/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65633432303834362d306166342d346466342d623432342d6265393064396333663938652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/ec420846-0af4-4df4-b424-be90d9c3f98e)

Confide is an authentication solution for **Laravel** made to cut repetitive work involving the management of users. A [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself) approach on features like 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 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 with basic user features.
- Integrated with the Laravel *Auth* and *Reminders* component/configs.
- User validation.
- 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)

**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": "~4.0@dev"

```

Run the Composer update comand

```
$ composer update

```

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

```
'providers' => array(

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

),

```

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

```
'aliases' => array(

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

),

```

### 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`, `remember_token`, `confirmation_code` and `confirmed` columns, which are the default fields needed for Confide use. Feel free to add more columns to the table later.

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

```
