public function edit($accountId)
 {
     //TODO Maybe crash
     $games = Game::all();
     $users = User::all();
     $account = Account::findOrFail($accountId);
     return view('admin.account.edit', ['account' => $account, 'users' => $users, 'games' => $games]);
 }
 public function getUsersByUsername()
 {
     $users = \Illuminate\Foundation\Auth\User::all();
     return $users;
 }
Exemple #3
0
 public function users_id($id)
 {
     $users = User::all();
     $user = User::find($id);
     return view('Admin.edit', compact('users', 'user'));
 }