I wanted to have the result with only the values not with the table column name in Laravel 4.2. For example,
$recs = DB::table(\'table_name\') ->s
Try
$recs = DB::table('table_name')->pluck('id', 'title'); dd($recs->all());