table([ 'files.id' => 'ID', 'file' => 'Filename', 'area' => 'Filearea' ],File::select(['files.id','file',DB::raw('fileareas.name AS filearea')]) ->join('fileareas',['fileareas.id'=>'files.filearea_id']) ->cursor()); return Command::SUCCESS; } }