8000 cleaning up code. · laravel/laravel@ba6590d · GitHub
[go: up one dir, main page]

Skip to content

Commit ba6590d

Browse files
committed
cleaning up code.
1 parent f608157 commit ba6590d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

laravel/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static function profile()
143143
*/
144144
public static function last_query()
145145
{
146-
return Database\Connection::last_query();
146+
return end(Database\Connection::$queries);
147147
}
148148

149149
/**

laravel/database/connection.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -332,17 +332,5 @@ public function __call($method, $parameters)
332332
{
333333
return $this->table($method);
334334
}
335-
336-
/**
337-
* Get the last query that was executed.
338-
*
339-
* Returns false if no queries have been executed yet.
340-
*
341-
* @return string
342-
*/
343-
public static function last_query()
344-
{
345-
return end(static::$queries);
346-
}
347335

348336
}

0 commit comments

Comments
 (0)
0