PHP code example of libressltd / lbtracker

1. Go to this page and download the library: Download libressltd/lbtracker 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/ */

    

libressltd / lbtracker example snippets


//Provider

LIBRESSLtd\LBTracker\LBTrackerServiceProvider::class,


php artisan vendor:publish --tag=lbtracker --force

php artisan migrate



'lbtracker' => \App\Http\Middleware\LBTrackerMiddleware::class



Route::group(["middleware" => ["lbtracker"]], function() {
	Route::get('/', function () {
	    return view('welcome');
	});
});



    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,

        // Middleware for LBTracker
        \App\Http\Middleware\LBTrackerMiddleware::class,
    ];