ilya_cig/track-session 问题修复 & 功能扩展

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

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

ilya_cig/track-session

Composer 安装命令:

composer require ilya_cig/track-session

包简介

Track Session

README 文档

README

This is a simple Laravel package to track a user's session anywhere in the code.

Installation

Install using composer:

composer require ilya_cig/track-session:dev-master

Run migrations:

php artisan migrate --path=/vendor/ilya_cig/track-session/database/migrations/2024_07_24_123500_create_track_session_table.php

(optional) Add the service provider in config/app.php:

CIG\TrackSession\Providers\TrackSessionServiceProvider::class,

(optional) And add the Agent alias to config/app.php:

'TrackSession' => CIG\TrackSession\Facades\TrackSessionFacade::class,

Basic Usage

If you want track session just use:

use TrackSession;

TrackSession::track();

OR

use CIG\TrackSession\Facades\TrackSessionFacade;

TrackSessionFacade::track();

OR

use CIG\TrackSession\Services\TrackSessionServices;

$trackSession = new TrackSessionServices();
$trackSession->track();

OR

use Illuminate\Support\Facades\App;
$trackSession = App::make('track.session');
$trackSession->track();

OR

use CIG\TrackSession\Jobs\TrackSession;
TrackSession::dispatch();

License

TrackSession is licensed under The MIT License (MIT).

Testing

vendor/bin/testbench  migrate
./vendor/bin/phpunit --filter test_save_in_table  tests/Feature/TrackSession.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-24