There is no license information available for the latest version (0.3.8) of this package.

0.3.8 2016-11-30 05:22 UTC

This package is auto-updated.

Last update: 2024-04-22 20:58:28 UTC


README

#user Build Status

#Installation ###1. Install package

composer require chimerarocks/user

###2. Add provider

#####in config/app.php

'providers' => [
    ...
    ChimeraRocks\User\Providers\UserServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,
],

'aliases' => [
    // ...
      'Form' => Collective\Html\FormFacade::class,
      'Html' => Collective\Html\HtmlFacade::class,
    // ...
 ],

###3. Publish views and migrations

remove old users migrations!

php artisan vendor:publish

###4. Refactoring User

  1. remove app/User.php
  2. remove Auth\RegisterController.php or change the namespache of User to ChimeraRocks\User\Models\User

###5. Change users provider

####config/auth.php

'providers' => [
   'users' => [
       'driver' => 'eloquent',
       'model' => \ChimeraRocks\User\Models\User::class,
   ],
],

###6. Add the middleware ####on kernel.php

$routeMiddleware = [
    ...
    'authorization' => \ChimeraRocks\User\Middlewares\Authorization::class,
    ...
]

###7. Add the routes ####on web.php

App::make('chimerarocks_user_route')->auth();

###8. Generate schema

php artisan migrate

###9. Install Passport

php artisan passport:install