mardi 6 octobre 2015

Laravel fire event before query execution

I have a working project in Laravel 5 All I need is to catch the query string just before the execution.And to have the option to terminate the query or execute it.

At the moment Im catching it but its executed.

Event::listen('illuminate.query', function($query, $params, $time, $conn) {
            echo($query);exit;
      });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire