diff --git a/laravel/database.php b/laravel/database.php index 2595bc9e..ef2389a0 100644 --- a/laravel/database.php +++ b/laravel/database.php @@ -110,6 +110,16 @@ public static function raw($value) 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. *