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.

v1.1.0 2023-08-17 11:52 UTC

This package is auto-updated.

Last update: 2024-10-19 10:39:19 UTC


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.