PHP code example of jmrashed / purchase-key-guard
1. Go to this page and download the library: Download jmrashed/purchase-key-guard 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/ */
jmrashed / purchase-key-guard example snippets
protected $middlewareGroups = [
'web' => [
// other middleware
\Jmrashed\PurchaseKeyGuard\Http\Middleware\VerifyPurchaseKey::class,
],
];
return [
'key' => env('PURCHASE_KEY', 'your-purchase-key-here'),
];
bash
php artisan vendor:publish --provider="Jmrashed\PurchaseKeyGuard\Providers\PurchaseKeyGuardServiceProvider" --tag="config"