use IlluminateSupportFacadesDB;
// Test database connection
try {
DB::connection()->getPdo();
} catch (Exception $e) {
die("Could not connect to the database. Please check your configuration. error:" . $e );
}
if(DB::connection()->getDatabaseName())
{
echo "conncted sucessfully to database ".DB::connection()->getDatabaseName();
}
DB::connection();
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3308
DB_DATABASE=rentable
DB_USERNAME=root
DB_PASSWORD=