Removed transaction method from Eloquent model since it is made pointless by DB::transaction.

This commit is contained in:
Taylor Otwell 2012-03-19 08:43:07 -05:00
parent 0455438ebe
commit d80730cf0d
1 changed files with 0 additions and 11 deletions

View File

@ -157,17 +157,6 @@ public static function accessible($attributes)
static::$accessible = $attributes;
}
/**
* Execute a callback wrapped in a database transaction.
*
* @param Closure $callback
* @return void
*/
public static function transaction($callback)
{
with(new static)->query()->connection()->transaction($callback);
}
/**
* Create a new model and store it in the database.
*