How can I check if laravel is connected to the database? I\'ve searched around and I can\'t find anything that would tell me how this is done.
working :) -
Just added this code to app/filters.php
App::error(function(PDOException $exception) { Log::error("Error connecting to database: ".$exception->getMessage()); return "Error connecting to database"; });