PHP code example of xlock / laravel

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

    

xlock / laravel example snippets


Route::middleware('xlock')->group(function () {
    Route::post('/login', [AuthController::class, 'login']);
    Route::post('/register', [AuthController::class, 'register']);
});

Route::post('/checkout', [CheckoutController::class, 'store'])->middleware('xlock');
bash
php artisan vendor:publish --tag=xlock-config