PHP code example of tipusultan / licensevalidator
1. Go to this page and download the library: Download tipusultan/licensevalidator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tipusultan / licensevalidator example snippets
// To change to 48 hours (2 days) of caching
Cache::put($cacheKey, true, now()->addHours(48));
// Or apply to the entire web middleware group in app/Http/Kernel.php
protected $middlewareGroups = [
'web' => [
// Other middleware...
\Tipusultan\LicenseValidator\Middleware\ValidateLicense::class,
],
];