htech / roles-and-permissions
Roles and Permissions integration for laravel development use by web developers on htechcorp
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Type:project
This package is auto-updated.
Last update: 2024-09-21 22:55:37 UTC
README
Htech Roles And Permissions
Installation
composer require htech/roles-and-permissions
Usage
No documentation yet. But we created some examples. Run in CLI.
php artisan vendor:publish
Then choose the number of the package then run migration and seeder
You are free to modify the published files. For the routes. Just override it if you want to modify. Here are the list of the routes.
Route::get('roles-and-permissions', 'RolesAndPermissionsController@index');
Route::post('roles-and-permissions/add-role', 'RolesAndPermissionsController@addRole');
Route::post('roles-and-permissions/edit-role', 'RolesAndPermissionsController@editRole');
Route::get('roles-and-permissions/roles/delete/{role_id}', 'RolesAndPermissionsController@deleteRole');
Route::post('roles-and-permissions/add-permission', 'RolesAndPermissionsController@addPermission');
Route::post('roles-and-permissions/edit-permission', 'RolesAndPermissionsController@editPermission');
Route::get('roles-and-permissions/permissions/delete/{role_id}', 'RolesAndPermissionsController@deletePermission');
Route::post('roles-and-permissions/update-role-permissions/{role_id}', 'RolesAndPermissionsController@updateRolePermissions');
Troubleshooting
- If you have problems in installing with lower versions of PHP. Try adding params
ignore-platform-reqs
in composer require
composer require htech/roles-and-permissions --ignore-platform-reqs
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The GNU General Public License v3.0 (GNU GPLv3). Please see License File for more information.
Author
Zik M.