Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 46 | All time: 10,783 This week: 61 |
Version | License | PHP version | Categories | |||
lgpd 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, Business |
Description | Author | |||
This package is specific mainly for applications used in Brazil .
This package can manage the LGPD law terms and site user acceptance. Innovation Award
|
LGPD support package for Laravel
` composer require thiagoprz/lgpd
`
...
'providers' => [
...
\Thiagoprz\Lgpd\LgpdServiceProvider::class,
],
...
` php artisan migrate
`
// 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');
` php artisan vendor:publish --provider="Thiagoprz\Lgpd\LgpdServiceProvider"
`
Views will be stored in `resources/views/vendor/lgpd
`.
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 |
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.
Implementação da LGPD ligada ao cadastro de usuários do Laravel.
` composer require thiagoprz/lgpd
`
...
'providers' => [
...
\Thiagoprz\Lgpd\LgpdServiceProvider::class,
],
...
` php artisan migrate
`
// LGPD CRUD resources (GET, POST, PATCH e DELETE já implementados)
Route::resource('lgpdterm', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermController');
Route::resource('lgpdtermitem', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermItemController');
Route::resource('lgpduseracceptance', 'Thiagoprz\Lgpd\Http\Controllers\LgpdUserAcceptanceController');
` php artisan vendor:publish --provider="Thiagoprz\Lgpd\LgpdServiceProvider"
`
As views estarão publicadas na pasta: `resources/views/vendor/lgpd
`.
lgpd_terms: termos LGPD
| Coluna | Tipo | Descrição | Nulo | | ------ | --------- | ------------------- | --- | | id | bigint | ID (auto incremento) | No | | term | text | Texto dos termos | No | | publishing_date | datetime | Data e hora em que os termos se tornarão obrigatórios | No | | version | varchar | Versão dos termos | Yes | | created_at | datetime | Data e hora da criação | No | | updated_at | datetime | Data e hora da última alteração | Yes |
lgpd_term_items: aceites dos termos LGPD
| Coluna | Tipo | Descrição | Nulo | | ------ | --------- | ------------------- | --- | | id | bigint | ID (auto incremento) | No | | lgpd_term_id | bigint | ID do Termo | No | | term | varchar(400) | Texto do aceite de termos | No | | created_at | datetime | Data e hora da criação | No | | updated_at | datetime | Data e hora da última alteração | Yes |
lgpd_user_acceptance: Registros de aceite dos usuários
| Coluna | Tipo | Descrição | Nulo | | ------ | --------- | ------------------- | --- | | id | bigint | ID (auto incremento) | No | | lgpd_term_id | bigint | ID do termo | No | | user_id | bigint | ID do usuário | No | | created_at | datetime | Data e hora da criação | No | | updated_at | datetime | Data e hora da última alteração | Yes |
O objetivo do projeto é permitir criar um texto de termos e nele conter um ou vários aceites contendo as especificidades dos termos apresentados. Por exemplo: em projetos que possuem transações financeiras muitas vezes será necessário indicar os termos de uso da própria ferramenta mais os termos de uso do gateway ou banco ligado ao processo de cobranças e pagamentos, estes dois termos podem ser apresentados juntos porém idealmente o sistema precisa especificar que as cláusulas de cada um foram aceitas pelo usuário.
Files (18) | / | database | / | migrations |
File | Role | Description |
---|---|---|
2021_03_23_132735_...gpd_terms_table.php | Class | Class source |
2021_03_23_133056_...erm_items_table.php | Class | Class source |
2021_03_23_140729_...cceptance_table.php | Class | Class source |
Files (18) | / | resources | / | views | / | lgpdterm |
File | Role | Description |
---|---|---|
create.blade.php | Aux. | Auxiliary script |
edit.blade.php | Aux. | Auxiliary script |
form.blade.php | Aux. | Auxiliary script |
index.blade.php | Aux. | Auxiliary script |
show.blade.php | Aux. | Auxiliary script |
Files (18) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Http (1 directory) | ||||
Models (3 files) | ||||
LgpdServiceProvider.php | Class | Class source |
Files (18) | / | src | / | Http | / | Controllers |
File | Role | Description |
---|---|---|
LgpdTermController.php | Class | Class source |
LgpdTermItemController.php | Class | Class source |
LgpdUserAcceptanceController.php | Class | Class source |
Files (18) | / | src | / | Models |
File | Role | Description |
---|---|---|
LgpdTerm.php | Class | Class source |
LgpdTermItem.php | Class | Class source |
LgpdUserAcceptance.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.