Laravel 4 package used to provide an admin panel with user, groups and permissions management. This package is currently under active development.
Begin by installing this package through Composer. Edit your project's composer.json
file to require stevemo/cpanel
.
{
"require": {
"stevemo/cpanel": "dev-master"
}
}
Update your packages with composer update
or install with composer install
.
You need to add the following service provider.
Open app/config/app.php
, and add a new items to the providers array.
'Former\FormerServiceProvider',
'Cartalyst\Sentry\SentryServiceProvider',
'Stevemo\Cpanel\CpanelServiceProvider',
Then add the following Class Aliases
'Former' => 'Former\Facades\Former',
'Sentry' => 'Cartalyst\Sentry\Facades\Laravel\Sentry',
Finally run the following command in the terminal. php artisan cpanel:install
This will publish the config files for Cartalyst/Sentry, Anahkiasen/Former and Stevemo/Cpanel also it will run the migration.
To create a user simply do php artisan cpanel:user
Done! Just go to http://localhost/admin to access the admin panel.