Commit d80730cf authored by Taylor Otwell's avatar Taylor Otwell

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

parent 0455438e
......@@ -157,17 +157,6 @@ abstract class Model {
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.
*
......
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