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
其他信息
- 授权协议: Unknown
- 更新时间: 2025-01-07