byCredentials() public méthode

public byCredentials ( array $credentials, string $type ) : array
$credentials array
$type string
Résultat array
 public function login(AuthRequest $request)
 {
     $data = $request->only(['username', 'password']);
     $type = $request->get('type');
     $type = "Domain\\{$type}\\{$type}";
     $remember = $request->get('remember');
     $response = $this->auth->byCredentials($data, $type, $remember);
     if (isset($response['error'])) {
         return response()->json($response, 403);
     }
     return response()->json($response);
 }