laraveldaily/laravel-permission-ui 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laraveldaily/laravel-permission-ui

最新稳定版本:0.1.4

Composer 安装命令:

composer require laraveldaily/laravel-permission-ui

包简介

A Laravel package for adding UI for spatie/Laravel-permission package.

README 文档

README

Status update: package idea abandoned.

Unfortunately, it's not possible/easy to build this package as flexible as I was expecting, with different layouts for Tailwind/Bootstrap/whatever and auto-implementing all Spatie package features for all possible cases. So I decided not to pursue this idea further and focus on other projects.

This package will create a simple Dashboard for managing roles/permissions based on the spatie/laravel-permission package.

Notice: this is a very early version of the package, may be buggy. Please report issues.

Installation

First, before installing this package, you need to have the spatie/laravel-permission installed and configured.

composer require laraveldaily/laravel-permission-ui

Go to yourdomain.com/permissions and you should see a simple dashboard with three menu items on top: to manage roles, permissions and assign them to users.

Spatie Permission UI

That dashboard is by default protected by the auth middleware, but you can configure it, by publishing the config:

php artisan vendor:publish --provider="LaravelDaily\PermissionsUI\PermissionsUIServiceProvider" --tag="config"

And then edit the values in config/permission_ui.php:

return [
    'middleware'        => ['web', 'auth'],
    'url_prefix'        => 'permissions',
    'route_name_prefix' => 'permission_ui.',
];

The visual design is based on simple Tailwind classes. At the moment, no visual customization options are available, but we may add them in the future, based on your ideas and feedback.

Publishing translations

If you wish to translate the package, you may publish the language files using:

php artisan vendor:publish --provider="LaravelDaily\PermissionsUI\PermissionsUIServiceProvider" --tag="lang"

Testing

To run the package's unit tests, run the following command:

vendor/bin/phpunit

统计信息

  • 总下载量: 5.18k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 79
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 79
  • Watchers: 8
  • Forks: 20
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-20