1. Go to this page and download the library: Download lamine/license 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/ */
lamine / license example snippets
Route::get('/', function () {
if (Index::validateLicense()) {
return view('welcome');
} else {
return view('License::LicenseExpired');
}
})->name('home');
public function index()
{
if (Index::validateLicense()) {
return Inertia::render('Auth/Login');
} else {
return view('License::LicenseExpired');
}
}