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)); }
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!')); }