Commit ba6590d7 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up code.

parent f608157f
...@@ -143,7 +143,7 @@ class Database { ...@@ -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);
} }
/** /**
......
...@@ -333,16 +333,4 @@ class Connection { ...@@ -333,16 +333,4 @@ 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);
}
} }
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