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
composer require irfa/app-license-client
You can get Composer here
'providers' => [
....
Irfa\AppLicenseClient\AppLicenseClientServiceProvider::class,
];
'aliases' => [
....
'ALC' => Irfa\AppLicenseClient\Facades\AppLicenseClient::class,
],
php artisan vendor:publish --tag=app-license-client
config/irfa/app-license-client.php
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
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,
Route::middleware('licenseCheck')->get('/example','TestController@index');