PHP code example of bnhashem / debug-query

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

    

bnhashem / debug-query example snippets



$users = User::where('email', '[email protected]');
$users->sql();

"select * from `users` where `email` = '[email protected]'"