Skip to content

Instantly share code, notes, and snippets.

@bunnywong
Last active August 29, 2015 14:18
Show Gist options
  • Save bunnywong/0629699afe50d4623549 to your computer and use it in GitHub Desktop.
Save bunnywong/0629699afe50d4623549 to your computer and use it in GitHub Desktop.
Laravel - Note
// PHP Composer
$ composer.phar self-update
$ composer.phar update --dev
$ vendor/bin/phpunit -c app/
// MYSQL
$ mysql -uroot -p
mysql> show variables like '%sock%';
/tmp/mysql.sock #Answer
// Last Query
$queries = DB::getQueryLog();
$last_query = end($queries);
// Script
local/database.php
'unix_socket' => '/tmp/mysql.sockk', // Ans
// URL
https://github.com/laravel-dojo/laravel4-first-class-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment