Created
March 25, 2014 08:29
-
-
Save fatgy/8cc6b50c351ec8da86ef to your computer and use it in GitHub Desktop.
Laravel snippet
This file contains hidden or 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
//Check db connection | |
if(DB::connection()->getDatabaseName()) | |
{ | |
echo "conncted sucessfully to database ".DB::connection()->getDatabaseName(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment