定制 thiagoprz/lgpd 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

thiagoprz/lgpd

Composer 安装命令:

composer require thiagoprz/lgpd

包简介

LGPD support package for Laravel

README 文档

README

LGPD support package for Laravel

Installation

composer require thiagoprz/lgpd

  • Add service provider (only if not using package auto discovery enabled) on config/app.php:
... 
'providers' => [
    ...
    \Thiagoprz\Lgpd\LgpdServiceProvider::class,
],
...
  • Migrate tables:

php artisan migrate

  • Add routes for terms implementation (api.php or web.php):

// LGPD CRUD resources (GET, POST, PATCH and DELETE already implemented)
Route::resource('lgpdterm', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermController');
Route::resource('lgpdtermitem', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermItemController');
Route::resource('lgpduseracceptance', 'Thiagoprz\Lgpd\Http\Controllers\LgpdUserAcceptanceController');

// LGPD Active Term
Route::get('lgpd/active', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermController@active');

  • Publish CRUD views to implement forms and management of the Terms and acceptance items.

php artisan vendor:publish --provider="Thiagoprz\Lgpd\LgpdServiceProvider"

Views will be stored in resources/views/vendor/lgpd.

Tables

  • lgpd_terms: LGPD terms

    Column Type Description Nullable
    id bigint ID (auto increment) No
    term text Terms text No
    publishing_date datetime Date and time when the version of the terms will become mandatory No
    version varchar Version of the terms Yes
    created_at datetime Date and time of creation No
    updated_at datetime Date and time of last update Yes
  • lgpd_term_items: LGPD terms acceptance items

    Column Type Description Nullable
    id bigint ID (auto increment) No
    lgpd_term_id bigint Term ID No
    term varchar(400) Acceptance term text No
    created_at datetime Date and time of creation No
    updated_at datetime Date and time of last update Yes
  • lgpd_user_acceptance: Record of acceptance by the user

    Column Type Description Nullable
    id bigint ID (auto increment) No
    lgpd_term_id bigint Term ID No
    user_id bigint User ID No
    created_at datetime Date and time of creation No
    updated_at datetime Date and time of last update Yes

Goal

The goal of the project is to allow the creation of a text of terms and to contain one or more accepted ones containing the specificities of the terms presented. For example: in projects that have financial transactions it will often be necessary to indicate the terms of use of the tool itself plus the terms of use of the gateway or bank linked to the collection and payment process, these two terms can be presented together but ideally the system needs specify that the clauses of each have been accepted by the user.

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固