コード例 #1
0
ファイル: AdminController.php プロジェクト: nilsma/agtp
 public function userAdministration($column = null)
 {
     if ($column == null) {
         $column = 'name';
     }
     $member_applications = MemberApplications::all()->sortBy('email');
     $users = User::all()->sortBy($column);
     return view('admin.user_administration', array('currentUser' => Auth::user(), 'member_applications' => $member_applications, 'users' => $users));
 }
コード例 #2
0
ファイル: UserController.php プロジェクト: nilsma/agtp
 public function confirmMemberApplication($id)
 {
     $ma = MemberApplications::find($id);
     $this->emailVerificationPreface($ma);
     $ma->delete();
     return Redirect::to('/admin/users')->with(array('alert-type' => 'alert alert-success', 'alert-message' => 'Medlemsskapet ble bekreftet!'));
 }