Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get db connection info

if(DB::connection()->getDatabaseName())
   {
     echo "conncted sucessfully to database ".DB::connection()->getDatabaseName();
   }
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #db #connection #info
ADD COMMENT
Topic
Name
5+1 =