PHP code example of pushery / sqlens-for-laravel

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

    

pushery / sqlens-for-laravel example snippets


// config/sqlens.php
'security' => [
    'privacy' => [
        'enabled' => true,
    ],
],
bash
php artisan sqlens:security
bash
php artisan sqlens:security --format=sarif --output=sqlens.sarif
bash
php artisan sqlens:security --refresh-advisories
yaml
- run: php artisan sqlens:agent-rules --check