diff --git a/README.md b/README.md
index 2442cee..37f8869 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,14 @@
-# 🚀Simple Laravel Encrypt Upload File
-[![GitHub license](https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square)](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [![Support me](https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square)](https://www.buymeacoffee.com/OBaAofN)
-
The Simple Laravel Encrypt Upload File uses the default encryption of Laravel which is implemented in upload file.
+# 🚀Lisensi aplikasi untuk server endpoint
+
+[![GitHub license](https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square)](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [![Support me](https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square)](https://www.buymeacoffee.com/OBaAofN) [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S52P7SN)
+
+
Plugin ini berfungsi untuk membuat serial number yang akan diakses menggunakan plugin https://github.com/irfaardy/app-license-client
🛠️ Installation with Composer
- composer require irfa/encrypt-file-laravel
+
+ composer require irfa/app-license-server
>You can get Composer [ here]( https://getcomposer.org/download/)
@@ -18,7 +21,7 @@
'providers' => [
....
- Irfa\FileSafe\FileSafeServiceProvider::class,
+ Irfa\AppLicenseServer\AppLicenseServerServiceProvider::class,
];
@@ -27,61 +30,89 @@
'aliases' => [
....
- 'FileSafe' => Irfa\FileSafe\Facades\FileSafe::class,
+ 'ALS' => Irfa\AppLicenseServer\Facades\AppLicenseServer::class,
],
Publish Vendor
- php artisan vendor:publish --tag=file-safe
+ php artisan vendor:publish --tag=app-license-server
+
+Run Migration
+
+```
+php artisan migrate
+```
Config File
- config/irfa/filesafe.php
+ config/irfa/app_license_server.php
-Example store file
+Inside Config File
- false,//Hashed Serial number,
- use Filesafe;
- use Illuminate\Http\Request;
- use App\Http\Controllers\Controller;
+ 'caching_license' => true,//Generate random alnum for upload filename,
- class FileController extends Controller
- {
-
- public function upload_file(Request $request)
- {
- $file = $request->file('file');
- FileSafe::store($file);
- //This is to encrypt the file before it is uploaded to the server.
-
- }
- }
+ 'license_route' => "/check/license",
+
+ 'route_name' => "check_license",
+
+ 'length' => 4, //length char per segment
+
+ 'segment' => 4,
+
+
+
+ ];
-Example download file
+Register New Serial Number License
"Lorem",
+ 'domain'=>"example.com",
+ 'phone_number'=>"08123123",
+ 'address'=>"Bandung,Indonesia"],now()->addDays(30));
}
}
+ Check License
+
+```
+serial)->check();
+ }
+
+}
+```
+
diff --git a/src/Func/License.php b/src/Func/License.php
index d5a21c6..7b68aeb 100644
--- a/src/Func/License.php
+++ b/src/Func/License.php
@@ -22,17 +22,17 @@ public function serial($serial)
public function disable()
{
-
+ //Coming soon
}
public function enable()
{
-
+ //Coming soon
}
public function renew($date)
{
-
+ //Coming soon
}
public function check()