Browse Source

cleaning up code.

Taylor Otwell 12 years ago
parent
commit
ba6590d7b1
2 changed files with 1 additions and 13 deletions
  1. 1 1
      laravel/database.php
  2. 0 12
      laravel/database/connection.php

+ 1 - 1
laravel/database.php

@@ -143,7 +143,7 @@ class Database {
 	 */
 	 */
 	public static function last_query()
 	public static function last_query()
 	{
 	{
-		return Database\Connection::last_query();
+		return end(Database\Connection::$queries);
 	}
 	}
 
 
 	/**
 	/**

+ 0 - 12
laravel/database/connection.php

@@ -332,17 +332,5 @@ class Connection {
 	{
 	{
 		return $this->table($method);
 		return $this->table($method);
 	}
 	}
-	
-	/**
-	 * Get the last query that was executed.
-	 * 
-	 * Returns false if no queries have been executed yet.
-	 *
-	 * @return string
-	 */
-	public static function last_query()
-	{
-		return end(static::$queries);
-	}
 
 
 }
 }