1. Go to this page and download the library: Download meebio/php-eval-console 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/ */
meebio / php-eval-console example snippets
eebio\PhpEvalConsole\Console;
$console = new Console();
$console->boot();
array(
array(
'query' => 'SELECT * FROM `users`;',
'time' => 0.113,
),
array(
'query' => 'SELECT * FROM `posts` JOIN `category` ON `post`.`category_id` = `category`.`id`;',
'time' => 0.231,
),
);
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'console',
];
}