PHP code example of atymic / laravel-spx-lambda

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

    

atymic / laravel-spx-lambda example snippets


use Atymic\SpxLambda\Http\Middleware\ProfileRequest;

->withMiddleware(function (Middleware $middleware): void {
    $middleware->append(ProfileRequest::class);
    $middleware->encryptCookies(except: ['SPX_KEY']);
})