How do I return a value from a call to Laravel DB::transaction(function () use() { … } ); Leave a Comment / Laravel / By Moh Actually the DB::transaction(...) returns whatever is returned from the callback.So you could simplify it to: $result = DB::transaction(function () { // ...logic here return someGetResult(); }); dd($result); Related posts: Laravel Sanctum in Shorthand Laravel Unique Validation on Multiple Columns Laravel variable naming conventions Laravel Cache and Configuration Clearing Commands