This plugin functions to create a serial number that will be accessed using plugin Client side License
composer require irfa/app-license-server
You can get Composer here
'providers' => [
....
Irfa\AppLicenseServer\AppLicenseServerServiceProvider::class,
];
'aliases' => [
....
'ALS' => Irfa\AppLicenseServer\Facades\AppLicenseServer::class,
],
php artisan vendor:publish --tag=app-license-server
php artisan migrate
config/irfa/app_license_server.php
<?php
return [
'license_route' => '/check/license',
'route_name' => 'check_license',
'char_type' => 'alphanumeric', //Type alphanumeric,numeric,or alphabet
'length' => 4,//default : 4
'segment' => 4,//default : 4
'striped' => true,//default : true
];
<?php
namespace App\Http\Controllers;
use ALS;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class LicenseController extends Controller
{
public function register(Request $request)
{
return ALS::register(['name'=>"Lorem",
'domain'=>"example.com",
'phone_number'=>"08123123",
'address'=>"Bandung,Indonesia"],now()->addDays(30));
}
}
<?php
namespace App\Http\Controllers;
use ALS;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class LicenseController extends Controller
{
public function check(Request $request)
{
return ALS::serial($request->serial)->check();
}
}
ALS::serial($request->serial)->disabled();
ALS::serial($request->serial)->disabled();
##How to Contributing?
- Fork it (https://github.com/irfaardy/app-license-server/fork)
- Commit your changes (
git commit -m 'New Feature'
) - Push to the branch (`git push origin your-branch)
- Create a new Pull Request
your-branch -> master
if you found bug or error, please post here https://github.com/irfaardy/app-license-server/issues so that they can be maintained together.
- Lakukan fork di (https://github.com/irfaardy/app-license-server/fork)
- Commit perubahan yang anda lakukan (
git commit -m 'Fitur Baru'
) - Push ke branch master (`git push origin branch-kamu)
- Buat Pull Request baru
branch-kamu -> master
If you found issues or bug please create new issues here https://github.com/irfaardy/app-license-server/issues/new
Jika anda menemukan bug atau error silahkan posting disini https://github.com/irfaardyapp-license-server/issues agar dapat diperbaiki bersama-sama.