chimerarocks / user
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
Requires
- php: >=5.5.9
- chimerarocks/database: 0.0.2
- illuminate/auth: 5.3.*
- illuminate/support: 5.3.*
- laravel/passport: ^1.0
- laravelcollective/html: ^5.3.0
Requires (Dev)
- mockery/mockery: ~0.9.2
- orchestra/testbench: 3.3.*
- phpunit/phpunit: ~5.2
README
#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
- remove app/User.php
- 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