irfa/app-license-client
Composer 安装命令:
composer require irfa/app-license-client
包简介
"License/Serial for web apllication"
README 文档
README
This plugin will run if you install a plugin for an endpoint server please visit here https://github.com/irfaardy/app-license-server
This plugin is used to install the application serial number on the client server
🛠️ Installation with Composer
composer require irfa/app-license-client
You can get Composer here
🛠️ Laravel Setup
Add to config/app.php
'providers' => [
....
Irfa\AppLicenseClient\AppLicenseClientServiceProvider::class,
];
Add to config/app.php
'aliases' => [
....
'ALC' => Irfa\AppLicenseClient\Facades\AppLicenseClient::class,
],
Publish Vendor
php artisan vendor:publish --tag=app-license-client
Config File
config/irfa/app-license-client.php
Plugin Settings
Tambahkan baris ini di file .env
Add this line to file .env
APP_SERIAL_NUMBER=XXXX-XXXX-XXXX-XXXX APP_LICENSE_ENDPOINT=https://example.com/check/license
Setting Middleware
Buka file App\Http\Kernel.php
Open file App\Http\Kernel.php
Tambahkan item ini di $routeMiddleware
Add this item in $routeMiddleware
'licenseCheck' => \Irfa\AppLicenseClient\Middleware\AppLicenseChecker::class,
Implementasi di route
Route::middleware('licenseCheck')->get('/example','TestController@index');
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-23