protected function checkDatabaseStatus($connection)
    {
        try {
            DB::connection($connection)->getPdo();
        } catch (Exception $e) {
            $this->eye->logger()->error('DB status failed', $e, $connection);
            return false;
        }

        return true;
    }
protected function checkDatabaseStatus($connection)
    {
        try {
            DB::connection($connection)->getPdo();
        } catch (Exception $e) {
            $this->eye->logger()->error('DB status failed', $e, $connection);
            return false;
        }

        return true;
    }
protected function checkDatabaseStatus ( $ connection ) { try { DB :: connection ( $ connection ) -> getPdo ( ) ; } catch ( Exception $ e ) { $ this -> eye -> logger ( ) -> error ( 'DB status failed' , $ e , $ connection ) ; return false ; } return true ; }
Check if the database connection is working.

@param  string  $connection
@return bool
Check if the database connection is working .