Commit d80730cf by Taylor Otwell

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

parent 0455438e
......@@ -158,17 +158,6 @@ abstract class Model {
}
/**
* 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.
*
* If save is successful, the model will be returned, otherwise false.
......
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