blackbirdchess-docker-dev/laravel/testing_docker/index.php
2015-08-21 14:29:52 +03:00

21 lines
328 B
PHP

<?php
echo 'Let\'s Start.. ';
try{
$pdo = new \PDO(
'mysql:host=localdock;dbname=laravel', // you need to create the database manually when you boot the mysql docker container
'root',
'pass'
);
echo 'I am connected to the DB. ';
}catch(Exception $e){
echo $e;
}
echo 'Everything is cool.';
phpinfo();