PHP code example of youngmayor / laravel-query-lens

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

    

youngmayor / laravel-query-lens example snippets


'paths' => [
    'api/*', // Wildcards are supported
],

'use_configured_database' => 'mysql', // Uses your default 'mysql' connection instead of SQLite
bash
php artisan vendor:publish --provider="Youngmayor\LaravelQueryLens\LaravelQueryLensServiceProvider" --tag="config"
bash
php artisan report:load-urls
bash
php artisan report:queries