hex-digital/admin-module 问题修复 & 功能扩展

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

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

hex-digital/admin-module

最新稳定版本:v0.2.0

Composer 安装命令:

composer require hex-digital/admin-module

包简介

Module for providing core admin functionality to our Laravel projects.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This module provides the core admin functionality for our Laravel projects. This module automatically takes care of installing and configuring Filament, managing admins and managing admin roles and permissions.

Installation

To get started with the admin module, you can install the pacakge via composer:

composer require hex-digital/admin-module

Next, you'll need to publish the config file, migrations and assets for the module and module dependencies. To simplfy this, the module comes with an install command:

php artisan admin-module:install

Every time you upgrade the module or Filament, you need to run the admim:module and filament:upgrade commands. We recommend adding this to your composer.json's post-update-cmd:

"post-update-cmd": [
    // ...
    "@php artisan filament:upgrade",
    "@php artisan admin-module:publish",
],

You should now run your migrations and sync the permissions:

php artisan migrate
php artisan permission:sync

Lastly, you can create a new admin account using:

php artisan make:filament-user

Visit your admin panel at /admin to sign in, and you're ready to start building.

Usage

Models & Resources

The admin module ships with an Admin which is used for authentication. You can override this model by setting the admin-module.admins.model config.

Under the hood, we use the Spatie Roles and Permissions package for authorization of admins. The admin module exposes a resource for managing both admins and roles.

You can customise these models / resources by editing the config.

Permissions

The admin module exposes a permission:sync commandwhich allows you to sync permissions which can then be assigned to roles. By default, the module provides permissions for managing admins and roles. However, you can add your own permissions to the admin-module.permissions config.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover a security vulnerability, please send an e-mail to dev@hexdigital.com. All security vulnerabilities will be promptly addressed.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固