承接 visualbuilder/user-consent 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

visualbuilder/user-consent

Composer 安装命令:

composer require visualbuilder/user-consent

包简介

Manages user consent for filament panels

README 文档

README

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

Version Compatibility

Package Version Filament Laravel PHP
5.x 5.x 11.x, 12.x 8.2+
4.x 4.x 10.x, 11.x 8.2+
  • Create and edit consent options
  • Apply them to user models
  • Include a consent form during registration
  • Email a copy of the consents to the user
  • Users already accepted can be asked to accept the updated consent
  • Provide users with My Consents page allowing review of their given consents
  • Provide admin panel users with a list of consents provided by all users

Installation

You can install the package via composer:

# For Filament 5.x
composer require visualbuilder/user-consent:^5.0

# For Filament 4.x
composer require visualbuilder/user-consent:^4.0

You can publish and run the migrations with:

php artisan vendor:publish --tag="user-consent-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="user-consent-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="user-consent-views"

This is the contents of the published config file:

return [
];

Customising the consent page

The page that users are sent to when consent is required (consent-option-request) is resolved from config, so you can register your own subclass without having to redefine the route — useful when you want to customise the page chrome, layout or behaviour:

// config/filament-user-consent.php
'pages' => [
    'consent_option_form_builder' => \App\Livewire\ConsentOptionFormBuilder::class,
],
// app/Livewire/ConsentOptionFormBuilder.php
use Visualbuilder\FilamentUserConsent\Livewire\ConsentOptionFormBuilder as BaseConsentOptionFormBuilder;

class ConsentOptionFormBuilder extends BaseConsentOptionFormBuilder
{
    // e.g. expose a logo + theme switcher, tweak the max width, etc.
}

When the option is omitted it defaults to the package's own Visualbuilder\FilamentUserConsent\Livewire\ConsentOptionFormBuilder.

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固