hoandv/id-connect 问题修复 & 功能扩展

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

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

hoandv/id-connect

最新稳定版本:v1.0.2

Composer 安装命令:

composer require hoandv/id-connect

包简介

ID API integration with Laravel by Son Leu

README 文档

README

ID Integration with Laravel

Table of Contents

  1. Installation
  2. Configuration
  3. Custom Models

Installation

Execute the following command to get the latest version of the package:

composer require sonleu/id-connect

Configuration

Add these inside of .env

ID_URL=<ID_BASE_API_URL>
ID_API_KEY=<ID_API_KEY>

Publish configs

php artisan vendor:publish --tag=id_connect_config

Custom models

By default, packages' models will be returned in api responses.

In case you want to customize the models, change the namespaces inside config.id_connect.models. For example:

// config/id_connect.php

return [
    /*
    |--------------------------------------------------------------------------
    | Custom models
    |--------------------------------------------------------------------------
    | Your models to which data should be returned.
    |
    | Your own models should extends the base models.
    |
    */
    'models' => [
        'user' => \App\User::class,
        'position' => \SonLeu\IDConnect\Models\Position::class,
        'department' => \SonLeu\IDConnect\Models\Department::class, 
    ]
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-27