Example #1
0
 /**
  * Get all of the executed queries.
  *
  * @param  \Closure  $callback
  * @return array
  */
 protected function getPreparedQueries(Closure $callback)
 {
     return $this->query->pretend(function () use($callback) {
         call_user_func($callback, $this->query);
     });
 }