Is it working? That's the way I would go about it. One thing to note, you're missing a DB::rollback() call on failure which I think is necessary to call (just for safety's sake at least)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.