定制 sonleu/sconnect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sonleu/sconnect

最新稳定版本:v1.1.14

Composer 安装命令:

composer require sonleu/sconnect

包简介

SConnect API integration with Laravel by Son Leu

README 文档

README

SConnect 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/sconnect

Configuration

Add these inside of .env

S_CONNECT_URL=<SCONNECT_BASE_API_URL>
S_CONNECT_API_KEY=<SCONNECT_API_KEY>

Publish configs

php artisan vendor:publish --tag=s_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.s_connect.models. For example:

// config/s_connect.php

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固