PHP code example of flevnex / elicense
1. Go to this page and download the library: Download flevnex/elicense 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/ */
flevnex / elicense example snippets
// Generate a new license
use Flevnex\Elicense\Models\License;
$license = License::create([
'user_id' => 1,
'expires_at' => now()->addYear()
]);
bash
php artisan vendor:publish --provider="Flevnex\Elicense\ElicenseServiceProvider"
bash
php artisan migrate