Last active
August 29, 2015 14:18
-
-
Save bunnywong/0629699afe50d4623549 to your computer and use it in GitHub Desktop.
Laravel - Note
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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