Commit a204054a authored by Taylor Otwell's avatar Taylor Otwell

added profile method to db class.

parent f9bc3cc2
......@@ -110,6 +110,16 @@ class Database {
return new Expression($value);
}
/**
* Get the profiling data for all queries.
*
* @return array
*/
public static function profile()
{
return Database\Connection::$queries;
}
/**
* Magic Method for calling methods on the default database connection.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment