承接 sabith/stackcue-zat2-laravel 相关项目开发

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

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

sabith/stackcue-zat2-laravel

最新稳定版本:1.3

Composer 安装命令:

composer require sabith/stackcue-zat2-laravel

包简介

README 文档

README

For laravel 11
add below in bootstrap/app.php

    ->withProviders([
        App\Providers\AppServiceProvider::class,
       
    ])->create();

For main laravel application service provider under boot method add below

$this->app->make('stackcue-zat2')->setSaasCompanyIdCallback(function () {
    $saas_company_id = 1; // Replace this with dynamic logic (e.g., database query)

    return $saas_company_id;
});

$this->app->make('stackcue-zat2')->setUserIDCallback(function () {
    $user_id = 1; // Replace this with dynamic logic (e.g., database query)

    return $user_id;
});


the value will available anywhere in application including library

$company_id = app('stackcue-zat2')->getSaasCompanyId(); and
$user_id = app('stackcue-zat2')->getuserID();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-01-07