laravel/framework — pull request #3457 by JamShady (2014-02-04 18:17:50+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)