承接 anwar/attendance-sync 相关项目开发

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

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

anwar/attendance-sync

最新稳定版本:0.0.41

Composer 安装命令:

composer require anwar/attendance-sync

包简介

Kiosk attendance sync package for Laravel 10

README 文档

README

Configurable User Relationship

The AttendanceEmployee model can be configured to have a relationship with a User model. This is useful if you want to link an employee to a user in your application.

To enable this feature, you need to publish the attendance-sync-config configuration file:

php artisan vendor:publish --tag=attendance-sync-config

This will create a config/attendance-sync.php file in your application. You can then edit this file to specify the User model and the relationship name.

By default, the configuration looks like this:

<?php

return [
    'user' => [
        'model' => env('ATTENDANCE_USER_MODEL', null),
    ],
    'employee' => [
        'relations' => env('ATTENDANCE_EMPLOYEE_RELATIONS', ''),
    ],
];

You can set the ATTENDANCE_USER_MODEL environment variable to the fully qualified class name of your User model, and the ATTENDANCE_EMPLOYEE_RELATIONS environment variable to the name of the relationship.

For example, if your User model is App\Models\User and you want to load the user relationship, you would add the following to your .env file:

ATTENDANCE_USER_MODEL=App\Models\User
ATTENDANCE_EMPLOYEE_RELATIONS=user

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-29