public function scopeUnconfirmedByTokenAndEmail($query, string $token, string $email)
    {
        return $query->where('expires_at', '>=', Carbon::now())
            ->where('new_email', $email)
            ->where('confirmed', false)
            ->where('token', $token);
    }
public function scopeUnconfirmedByTokenAndEmail($query, string $token, string $email)
    {
        return $query->where('expires_at', '>=', Carbon::now())
            ->where('new_email', $email)
            ->where('confirmed', false)
            ->where('token', $token);
    }
public function scopeUnconfirmedByTokenAndEmail ( $ query , string $ token , string $ email ) { return $ query -> where ( 'expires_at' , '>=' , Carbon :: now ( ) ) -> where ( 'new_email' , $ email ) -> where ( 'confirmed' , false ) -> where ( 'token' , $ token ) ; }
Retrieve a petition by the given token and email address.

@param  Illuminate\Database\Eloquent\Builder $query
@param  string $token
@param  string $email

@return Illuminate\Database\Eloquent\Builder
Retrieve a petition by the given token and email address .