예제 #1
0
 public function showJSONList()
 {
     $users = [];
     foreach (User::all() as $user) {
         $users[] = ['value' => $user->name, 'avatar' => $user->getAvatarPath()];
     }
     return Response::json($users);
 }