PHP code example of erayaydin / fingerprint-laravel
1. Go to this page and download the library: Download erayaydin/fingerprint-laravel 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/ */
erayaydin / fingerprint-laravel example snippets
Route::middleware(['fingerprint'])->group(function () {
// Request is valid!
});
Route::middleware(['fingerprint.incognito', 'fingerprint.vpn'])->group(function () {
// User is not in incognito mode and not using VPN!
});
class ExampleController extends Controller
{
public function store(Event $event)
{
ray($event->identification, $event->botD, $event->isTor, $event->isVPN);
}
}
class ExampleController extends Controller
{
public function store(Fingerprint $fingerprint)
{
ray($fingerprint->getEvent('requestId'));
}
}