ikepu-tp / laravel-admin
This is a package for laravel admin. You can add a function to manage users as user to your laravel application.
Fund package maintenance!
ikepu-tp
Requires
- php: ^8.2
- laravel/framework: ^10.8
README
This is a library to add administrator functionality to Laravel Project
.
Features
- Set administrators from users
- Show the list of users
How to use
1. Install from composer
composer require ikepu-tp/laravel-admin
2. Publish configure file
php artisan vendor:publish --tag=laravelAdmin-config
3. Migrate
php artisan migrate
4. Add UserTrait
to User.php
class User extends Model { use \ikepu_tp\LaravelAdmin\app\Models\UserTrait;
5. Set administrator at the first time
insert into user_grants (user_id,grant) values (`your user_id`,0)
At the first time, you have to set administrator by SQL but you can set on http://localhost/admin/users after that.
Contributing
Thank you for your contributions. If you find bugs, let me know them with issues.
License
Copyright (c) 2023 ikepu-tp.
This is open-sourced software licensed under the MIT license.