illuminate/database — pull request #142 by Flynsarmy (2014-02-19 22:58:57+00:00)
Title: Add getter for loggingQueries

We currently have `DB::disableQueryLog();` and `DB::enableQueryLog();` but no `DB::getQueryLogState();` (`getQueryLog()` is already taken up for something unrelated).

Having this getter would allow developers to disable query log for DB-intensive operations then return logging to its previous state instead of having to guess what it was beforehand and setting to that.