コード例 #1
0
ファイル: GroupController.php プロジェクト: BibleBowl/account
 public function getTransferOwnership(AdminOnlyRequest $request, $groupId)
 {
     $users = [];
     foreach (User::whereStatus(User::STATUS_CONFIRMED)->orderBy('last_name', 'ASC')->orderBy('first_name', 'ASC')->get() as $user) {
         $users[$user->id] = $user->last_name . ', ' . $user->first_name . ' (' . $user->email . ')';
     }
     return view('admin.groups.transfer-ownership', ['group' => Group::findOrFail($groupId), 'users' => $users]);
 }