src/Models/Database.php
public static function getPrettyQueryLog($connection = "")
	{
		$return_queries = [];

		$queries = Capsule::connection($connection)->getQueryLog();

		foreach ($queries as $query) {
			$query_pattern = str_replace('?', "'%s'", $query['query']);
			$return_queries[] = vsprintf($query_pattern, $query['bindings']);
		}

		return $return_queries;
	}
public static function getPrettyQueryLog($connection = "")
	{
		$return_queries = [];

		$queries = Capsule::connection($connection)->getQueryLog();

		foreach ($queries as $query) {
			$query_pattern = str_replace('?', "'%s'", $query['query']);
			$return_queries[] = vsprintf($query_pattern, $query['bindings']);
		}

		return $return_queries;
	}
Get a list of all queries formatted with their bindings in place

@param string $connection
@return array