getActiveDrivers() public method

Gets the names of the active social drivers.
public getActiveDrivers ( ) : array
return array
示例#1
0
 /**
  * Show the form for editing the specified user.
  * @param  int              $id
  * @param SocialAuthService $socialAuthService
  * @return Response
  */
 public function edit($id, SocialAuthService $socialAuthService)
 {
     $this->checkPermissionOr('user-update', function () use($id) {
         return $this->currentUser->id == $id;
     });
     $user = $this->user->findOrFail($id);
     $activeSocialDrivers = $socialAuthService->getActiveDrivers();
     $this->setPageTitle('User Profile');
     return view('users/edit', ['user' => $user, 'activeSocialDrivers' => $activeSocialDrivers]);
 }
示例#2
0
 /**
  * Show the form for editing the specified user.
  * @param  int              $id
  * @param SocialAuthService $socialAuthService
  * @return Response
  */
 public function edit($id, SocialAuthService $socialAuthService)
 {
     $this->checkPermissionOr('users-manage', function () use($id) {
         return $this->currentUser->id == $id;
     });
     $authMethod = config('auth.method');
     $user = $this->user->findOrFail($id);
     $activeSocialDrivers = $socialAuthService->getActiveDrivers();
     $this->setPageTitle('User Profile');
     $roles = $this->userRepo->getAssignableRoles();
     return view('users/edit', ['user' => $user, 'activeSocialDrivers' => $activeSocialDrivers, 'authMethod' => $authMethod, 'roles' => $roles]);
 }