定制 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固