Ejemplo n.º 1
0
 public function index()
 {
     $logs = AVLog::where('room_name', '=', Input::get('room'))->get();
     foreach ($logs as $log) {
         $log->username = User::where('id', '=', $log->uid)->pluck('fullname');
     }
     return $logs->toJson();
 }