Added transaction method to database connection and eloquent model.

This commit is contained in:
Taylor Otwell
2012-03-18 22:39:04 -05:00
parent fcff36a0ac
commit 0455438ebe
3 changed files with 51 additions and 15 deletions

View File

@@ -243,7 +243,7 @@ class Query {
*
* @return Connection
*/
protected function connection()
public function connection()
{
return Database::connection($this->model->connection());
}