hexafuchs/laravel-database-privacy 问题修复 & 功能扩展

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

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

hexafuchs/laravel-database-privacy

最新稳定版本:v0.2.0

Composer 安装命令:

composer require hexafuchs/laravel-database-privacy

包简介

Less privacy intrusive database session handler

README 文档

README

Latest Version on Packagist Total Downloads

The default database session handler of Laravel stores the IP and User Agent in the session. This is problematic in many ways, as this is data that is unnecessary, not well protected, and not even used anywhere, also leading to issues with the GDPR. This database handler is exactly the same as the original one, but removes this unnecessary data.

Installation

You can install the package via composer:

composer require hexafuchs/laravel-database-privacy

Usage

If you want to make sure you get the session table of this package, use the following artisan command:

php artisan make:privacy-session-table

The package also tries to hook into the original command, but you should check your migration file to make sure ìp_address and user_agent are missing.

Also, of course, change your session handler to database in your .env or using the method of you prefer.

To check everything is working correctly, you can execute the following command (assuming your session handler is the same in the CLI and on the webserver):

php artisan session:handler

It should return Hexafuchs\PrivacyFriendlyDatabaseSessionHandler\PrivacyFriendlyDatabaseSessionHandler.

If it does not work, try manually adding the provider to your bootstrap/providers.php:

return [
    ...,
    \Hexafuchs\PrivacyFriendlyDatabaseSessionHandler\PrivacyFriendlyDatabaseSessionHandlerServiceProvider::class,
];

Testing

composer test

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-30