public function attempt(array $credentials)
    {
        if (! $this->auth->byCredentials($credentials)) {
            return false;
        }

        return $this->fromUser($this->user());
    }
public function attempt(array $credentials)
    {
        if (! $this->auth->byCredentials($credentials)) {
            return false;
        }

        return $this->fromUser($this->user());
    }
public function attempt ( array $ credentials ) { if ( ! $ this -> auth -> byCredentials ( $ credentials ) ) { return false ; } return $ this -> fromUser ( $ this -> user ( ) ) ; }
Attempt to authenticate the user and return the token.

@param  array  $credentials

@return false|string
Attempt to authenticate the user and return the token .