intothesource/users
| Install | |
|---|---|
composer require intothesource/users |
|
| Latest Version: | 1.0.12 |
| PHP: | >=5.5.9 |
| License: | BSD-2 |
| Last Updated: | Nov 6, 2019 |
| Links: | GitHub · Packagist |
Users
User manager with roles (single and multiple)
Install
composer require intothesource/users
This package also uses the Entrance package, for more information about that package go to that repositorie.
After install
ServiceProvider
Add the following line to "config/app.php"
at "providers":
IntoTheSource\Users\UsersServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
And at "aliases":
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
Creating the files
Run the following command:
php artisan vendor:publish
Migration
Run the command:
php artisan migrate
Middleware
Add the following lines to the '$routeMiddleware' array in the file 'App/Http/Kernel.php'
'sourceOrAdmin' => \IntoTheSource\Users\Http\Middleware\IfSourceOrAdmin::class,
If you go to the user index you first need a role that sign in the config file at 'Middleware'
Database Seed
If you want to at basic roles, do the following thinks. @note: if you want to use this be sure that you also included the database seeding of the Entrance package
Add to your 'DatabaseSeeder.php' file in the 'database/seeds' folder
$this->call(RoleTableSeeder::class);
$this->call(RoleUserTableSeeder::class);
After that run the next command:
php artisan db:seed
####### Or if you don't want to do that run the following commands:
first: php artisan db:seed --class=RoleTableSeeder
second: php artisan db:seed --class=RoleUserTableSeeder
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.12 | >=5.5.9 | BSD-2 | ||
| 1.0.11 | >=5.5.9 | BSD-2 | ||
| 1.0.10 | >=5.5.9 | BSD-2 | ||
| 1.0.9 | >=5.5.9 | BSD-2 | ||
| 1.0.8 | >=5.5.9 | BSD-2 | ||
| 1.0.7 | >=5.5.9 | BSD-2 | ||
| 1.0.6 | >=5.5.9 | BSD-2 | ||
| 1.0.5 | >=5.5.9 | BSD-2 | ||
| 1.0.4 | >=5.5.9 | ~5.1 | BSD-2 | |
| 1.0.3 | >=5.5.9 | ~5.1 | BSD-2 | |
| 1.0.2 | >=5.5.9 | ~5.1 | BSD-2 | |
| 1.0.1 | >=5.5.9 | ~5.1 | BSD-2 | |
| 1.0.0 | >=5.5.9 | ~5.1 | BSD-2 | |
| 0.2.1 | >=5.3.0 | ~5.1 | MIT | |
| 0.2.0 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.9 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.8 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.7 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.6 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.5 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.4 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.3 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.2 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.1 | >=5.3.0 | ~5.1 | MIT | |
| 0.1.0 | >=5.3.0 | ~5.1 | MIT | |
| 0.0.9 | >=5.3.0 | ~5.1 | MIT | |
| 0.0.8 | >=5.3.0 | ~5.1 | MIT | |
| 0.0.7 | >=5.3.0 | ~5.1 | MIT | |
| 0.0.6 | >=5.3.0 | ~5.1 | MIT | |
| 0.0.3 | >=5.3.0 | ~5.1 | MIT |
Showing the latest 30 of 32. See every release on Packagist