Custom user fields #711 (#772)

Custom user fields during registration and profile edit #711
This commit is contained in:
Nabeel S
2020-08-11 17:48:51 -04:00
committed by GitHub
parent 3739cc8e91
commit 3ebf4f2924
36 changed files with 740 additions and 107 deletions

View File

@@ -158,11 +158,12 @@ class UserController extends Controller
*/
public function edit($id)
{
$user = $this->userRepo->findWithoutFail($id);
$user = $this->userRepo
->with(['fields', 'rank'])
->findWithoutFail($id);
if (empty($user)) {
Flash::error('User not found');
return redirect(route('admin.users.index'));
}