laravel/framework — pull request #4238 by JamShady (2014-04-24 10:26:34+00:00)
Title: Allow queries to be supplied as tables

Problem described here: http://laravel.io/forum/02-04-2014-select-from-query

This update allows a query to be passed through as the table to query from, in the format of:
DB::table('alias', $query)