-
Notifications
You must be signed in to change notification settings - Fork 24
/
license-server.php
112 lines (102 loc) · 2.61 KB
/
license-server.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
return [
/**
* This prefix will be used for all tables created by the license-server.
*
* Table name prefixes are used to prevent naming conflicts when using multiple stores
* or local conflicts with other tables in the database.
*
* Example table name: ls_licenses
*
* Default: ls
*/
'default_table_prefix' => 'ls',
/**
* If you allow the subdomain licensing, you can set unlimited subdomains.
*
* If you set this to false, you can only set one subdomain.
*
* Default: false
*/
'allow_subdomains' => true,
/**
* Set license expiration days.
*
* In service, if you don't set this, it will use the default value from the config file.
*
* Default: 365
*/
'license_expiration_days' => 365,
/**
* Allow lifetime licenses.
*
* If you set this to true, you can create a lifetime license.
* If you set this to false, previous licenses won't be affected.
*
* Default: true
*/
'allow_lifetime_licenses' => true,
/**
* Allow trial licenses.
*
* If you set this to true, you can create a trial license.
*
* Default: true
*/
'allow_trial_licenses' => true,
/**
* Trial license expiration days.
*
* Default: 30
*/
'trial_expiration_days' => 30,
/**
* Admin api middleware
*/
'admin_api_middleware' => [
'auth:sanctum',
'throttle:api',
],
/**
* Event listeners for License Server
*/
'event_listeners' => [
/**
* License checked event listener
*
* You can use this event to do something when a license is checked.
* Also you can handle custom data with this listener.
*
* See the documentation for more information.
*
* Default: null
*/
'license_checked' => null
],
/**
* Custom controllers for License Server
*/
'controllers' => [
/**
* License validation controller
*
* You can use this controller to handle license validating
*
* See the documentation for more information.
*
* Default: null
*/
'license_validation' => [
LaravelReady\LicenseServer\Http\Controllers\Api\LicenseValidationController::class,
'licenseValidate'
]
],
/**
* Addional middlewares for license validation routes
*
* Package middlewares will be run before this middlewares.
*
* Default: []
*/
'license_middlewares' => []
];