示例#1
0
 public function index()
 {
     $users = $this->users()->map(function ($user) {
         return api::user($user);
     });
     return response::json(array_values($users->toArray()));
 }