Skip to content

Instantly share code, notes, and snippets.

View pollin14's full-sized avatar

Victor Aguilar pollin14

  • Medtrainer
  • Mexico D.F.
View GitHub Profile
@pollin14
pollin14 / gist:c0d4f68ef4eac9b41724
Last active August 29, 2015 14:10
Get the last query in Laravel4
$queries = \DB::getQueryLog();
\Log::info(end($queries))
SET foreign_key_checks = 0;
;; RESUME:
;; Xdebug configuration file in order to use together with Netbeans.
;;
;; OS: ubuntu 14:04
;; FILENAME: /etc/php5/apache2/conf.d/20-xdebug.ini
zend_extension=xdebug.so
xdebug.default_enable=1
xdebug.remote_enable=1